Skip to content

Commit 49d65b5

Browse files
AmitMYclaude
andcommitted
fix: skip pyproject.toml commit when version is already set
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8354426 commit 49d65b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
git config user.name "GitHub Actions"
4040
git config user.email "actions@github.com"
4141
git add pyproject.toml
42-
git commit -m "Bump version to ${{ env.version }}"
43-
git push origin master
42+
git diff --cached --quiet || (git commit -m "Bump version to ${{ env.version }}" && git push origin master)
4443
working-directory: src/python
4544

4645
- name: Install dependencies

0 commit comments

Comments
 (0)