Skip to content

Commit 165c9fb

Browse files
Update preview-docs.yml
1 parent 140a282 commit 165c9fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/preview-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
steps:
1616
- if: github.event.comment.body == '/preview'
1717
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
2020
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
2222
fi

0 commit comments

Comments
 (0)