Skip to content

Commit

Permalink
Don't run commit if the version numbers match
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Dec 4, 2023
1 parent 9f31c32 commit 2dba419
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/doc_generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
git config user.email "[email protected]"
git config user.name "Github Actions"
git add .
git diff --staged --quiet || {
echo "No changes to commit"
exit 0
}
git commit -am "Bump version to ${{ env.VERSION_NAME }}"
git push origin develop
Expand Down

0 comments on commit 2dba419

Please sign in to comment.