We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0f430 commit d5a6f8fCopy full SHA for d5a6f8f
.github/workflows/release.yml
@@ -76,8 +76,14 @@ jobs:
76
git config --local user.email "action@github.com"
77
git config --local user.name "GitHub Action"
78
git add Cargo.toml
79
- git commit -m "Bump version to ${{ steps.version.outputs.version }}"
80
- git push origin main
+
+ # Only commit if there are changes
81
+ if git diff --staged --quiet; then
82
+ echo "No changes to commit - Cargo.toml already at correct version"
83
+ else
84
+ git commit -m "Bump version to ${{ steps.version.outputs.version }}"
85
+ git push origin main
86
+ fi
87
88
- name: Create git tag
89
if: steps.tag-check.outputs.exists == 'false'
0 commit comments