File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 15
15
steps :
16
16
- if : github.event.comment.body == '/preview'
17
17
run : |
18
- if curl --output /dev/null --silent --head --fail "https://pandas.pydata.org/preview/${{ github.event.issue.number }}"; then
19
- curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "Website preview of this PR available at: https://pandas.pydata.org/preview/${{ github.event.issue.number }}"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments
18
+ if curl --output /dev/null --silent --head --fail "https://pandas.pydata.org/preview/${{ github.event.issue.number }}/ "; then
19
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "Website preview of this PR available at: https://pandas.pydata.org/preview/${{ github.event.issue.number }}/ "}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments
20
20
else
21
- curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "No preview found for PR ${{ github.event.issue.number }}"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments
21
+ curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body": "No preview found for PR # ${{ github.event.issue.number }}"}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments
22
22
fi
You can’t perform that action at this time.
0 commit comments