Skip to content

Commit

Permalink
Don't fail docs push if there's nothing to commit (#7001)
Browse files Browse the repository at this point in the history
  • Loading branch information
will-cromar authored Apr 30, 2024
1 parent 87329ce commit 5f75290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ jobs:
git config user.email "[email protected]"
git config user.name "torchxlabot2"
git add . -v
git commit -m "Update doc from commit ${{ github.sha }}"
git diff --cached --exit-code || git commit -m "Update doc from commit ${{ github.sha }}"
git push origin gh-pages
if: github.event_name == 'push'

0 comments on commit 5f75290

Please sign in to comment.