We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea5f9fc + db450b9 commit df34ac9Copy full SHA for df34ac9
.github/workflows/release.yaml
@@ -115,8 +115,13 @@ jobs:
115
git config user.name "github-actions"
116
git config user.email "[email protected]"
117
git add pyproject.toml
118
- git commit -m "Release ${VERSION}: update version"
119
- git push origin HEAD:${BRANCH}
+
+ if git diff --cached --quiet; then
120
+ echo "No version changes detected. Skipping commit."
121
+ else
122
+ git commit -m "Release ${VERSION}: update version"
123
+ git push origin HEAD:${BRANCH}
124
+ fi
125
126
- name: Upload updated pyproject
127
uses: actions/upload-artifact@v4
0 commit comments