Skip to content

Commit

Permalink
Flip the response of git diff-index and use simple if
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 29, 2024
1 parent 76b8b0a commit ea82538
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,8 @@ jobs:
export MSG="[Auto] Latest versions as of $(date +'%Y-%m-%d %H:%M')"
export DOC=docs/reference/latest-versions-of-every-openrewrite-module.md
export JS=src/plugins/latest-versions.js
git diff-index --quiet HEAD ${DOC} || (git commit --message "${MSG}" ${DOC} ${JS} && git push origin master)
if ! git diff-index --quiet HEAD ${DOC};
then
git commit --message "${MSG}" ${DOC} ${JS};
git push origin master;
fi

0 comments on commit ea82538

Please sign in to comment.