Skip to content

Commit

Permalink
A different approach at gating the commit
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrowlands committed Dec 4, 2023
1 parent 2dba419 commit 3e53aed
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/doc_generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ jobs:
git config user.email "[email protected]"
git config user.name "Github Actions"
git add .
git diff --staged --quiet || {
# Check for changes
if git diff --staged --quiet; then
echo "No changes to commit"
exit 0
}
git commit -am "Bump version to ${{ env.VERSION_NAME }}"
git push origin develop
else
git commit -m "Bump version to ${{ env.VERSION_NAME }}"
git push origin develop
fi
generateDocs:
Expand Down

0 comments on commit 3e53aed

Please sign in to comment.