Skip to content

Commit

Permalink
Only commit on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raynaudoe committed Sep 11, 2024
1 parent 92c9217 commit c47c39e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/generate-chain-specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,10 @@ jobs:
- name: Commit changes
run: |
git add chain-specs/local/*.json
git commit -m "Update chain specs" || echo "No changes to commit"
git push
if git diff --staged --quiet; then
echo "No changes detected in chain specs. Skipping commit."
else
git commit -m "Update chain specs"
git push
echo "Changes committed and pushed successfully."
fi

0 comments on commit c47c39e

Please sign in to comment.