Skip to content

Commit

Permalink
CI: fix condition on which reformats are re-committed
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrews committed Jan 17, 2024
1 parent d3b9075 commit f1bf354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:
git config user.email "$(git log -n 1 --pretty=format:%ae)"
# short-circuit if we have no changes, otherwise attempt to commit and push
# should only fail on forks, in which case contributors will need to manually format, commit, and push
git diff-index --quiet HEAD || (echo "Committing changes" && git commit -am '${{ env.CI_COMMIT_MESSAGE }}' && echo "Pushing changes" && git push -f)
git diff --quiet || (echo "Committing changes" && git commit -am '${{ env.CI_COMMIT_MESSAGE }}' && echo "Pushing changes" && git push -f)

0 comments on commit f1bf354

Please sign in to comment.