Skip to content

Fix bump-and-release when version is already current#11

Merged
stedrew merged 1 commit intomainfrom
fix/bump-release-no-change
Mar 11, 2026
Merged

Fix bump-and-release when version is already current#11
stedrew merged 1 commit intomainfrom
fix/bump-release-no-change

Conversation

@stedrew
Copy link
Contributor

@stedrew stedrew commented Mar 11, 2026

Summary

  • Fix bump-and-release.yml failing with "nothing to commit" when pyproject.toml already has the target version
  • Skip the commit if no changes, but still create the tag and push

Root cause

Running the workflow with version 0.1.0 when pyproject.toml already had version = "0.1.0"sed produced no diff, so git commit failed.

Test plan

  • Run "Bump and Release" with the current version — should succeed (skip commit, create tag)
  • Run "Bump and Release" with a new version — should commit, tag, and push

🤖 Generated with Claude Code

Skip the commit step if pyproject.toml already has the target version,
but still create the tag and push. This avoids failing with "nothing to
commit" when re-running with the same version.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stedrew stedrew merged commit 7a9d79f into main Mar 11, 2026
1 check passed
@stedrew stedrew deleted the fix/bump-release-no-change branch March 11, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant