We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8497f34 commit 0bab21fCopy full SHA for 0bab21f
1 file changed
.github/workflows/release.yml
@@ -264,10 +264,14 @@ jobs:
264
git config user.name "github-actions[bot]"
265
git config user.email "github-actions[bot]@users.noreply.github.com"
266
267
- # Commit and push
268
- git add CHANGELOG.md
269
- git commit -m "chore: update CHANGELOG for $NEW_VERSION [skip ci]"
270
- git push origin main
+ # Commit and push only if there are changes
+ if git diff --quiet CHANGELOG.md; then
+ echo "No changes to CHANGELOG.md, skipping commit"
+ else
271
+ git add CHANGELOG.md
272
+ git commit -m "chore: update CHANGELOG for $NEW_VERSION [skip ci]"
273
+ git push origin main
274
+ fi
275
276
- name: Summary
277
if: steps.check_release.outputs.needs_release == 'true'
0 commit comments