Skip to content

Commit

Permalink
Merge pull request #19 from ahasunos/blank-commit
Browse files Browse the repository at this point in the history
pass check if no commit is made
  • Loading branch information
ahasunos authored Sep 5, 2024
2 parents c270b5c + 4650daf commit 6343f5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,19 @@ jobs:
- name: Bump version
run: ruby .github/scripts/version_bump.rb

- name: Check for changes
id: check_changes
run: |
if git diff --exit-code; then
echo "No changes to commit"
echo "changed=false" >> $GITHUB_ENV
else
echo "Changes detected"
echo "changed=true" >> $GITHUB_ENV
fi
- name: Commit and push changes
if: env.changed == 'true'
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
Expand Down

0 comments on commit 6343f5f

Please sign in to comment.