Skip to content

Commit db450b9

Browse files
committed
🚀 fixing version bump
1 parent 5c4753d commit db450b9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,13 @@ jobs:
115115
git config user.name "github-actions"
116116
git config user.email "[email protected]"
117117
git add pyproject.toml
118-
git commit -m "Release ${VERSION}: update version"
119-
git push origin HEAD:${BRANCH}
118+
119+
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
120125
121126
- name: Upload updated pyproject
122127
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)