Skip to content

fix: make tag creation idempotent in release workflow#156

Merged
btoron merged 1 commit intomasterfrom
release/2.24.3
Mar 5, 2026
Merged

fix: make tag creation idempotent in release workflow#156
btoron merged 1 commit intomasterfrom
release/2.24.3

Conversation

@btoron
Copy link
Owner

@btoron btoron commented Mar 5, 2026

Summary

  • Makes the "Create and push tag" step idempotent so workflow re-runs succeed when the tag already exists
  • Fixes the case where the first run failed on PyPI publish (trusted publisher mismatch) and re-running failed because v2.24.3 was already tagged

Behavior

  • If tag already exists → logs a skip message and continues to build + publish
  • If tag does not exist → creates and pushes it as before

🤖 Generated with Claude Code

Skip tag creation if it already exists, allowing workflow re-runs
to succeed after a failed publish step.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@btoron btoron added the release:patch Triggers patch version tag on merge label Mar 5, 2026
@btoron btoron merged commit 1108e27 into master Mar 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:patch Triggers patch version tag on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant