Skip to content

Release workflow: update an existing release instead of failing - #24

Merged
VictorGSchneider merged 1 commit into
mainfrom
claude/youthful-tesla-gbhv5o
Oct 15, 2026
Merged

VictorGSchneider merged 1 commit into
mainfrom
claude/youthful-tesla-gbhv5o

Conversation

@VictorGSchneider

Copy link
Copy Markdown
Owner

Problem

The Release runs for v2.0.0 and v2.1.0 failed at "Publish the release" with HTTP 422: Release.tag_name already exists: the releases had been created by hand a couple of seconds before the workflow reached gh release create.

Change

Make the publish step idempotent: if gh release view finds a release for the tag, run gh release edit with the title and the CHANGELOG notes; otherwise gh release create ... --verify-tag as before.

Only .github/workflows/release.yml changes.

Notes

  • Re-running the old failed runs won't use this fix (a re-run uses the workflow file at the tag's commit). It takes effect for the next tag push.
  • v2.0.0 currently points at the 2.1.0 merge commit instead of afffdd8; that is a tag fix, not part of this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UB8ouAGs45EfpwJjttj6yY


Generated by Claude Code

gh release create returns 422 when the release already exists (made by
hand or by an earlier run). Edit its title and notes from CHANGELOG.md
in that case.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UB8ouAGs45EfpwJjttj6yY
@VictorGSchneider VictorGSchneider self-assigned this Oct 15, 2026
@VictorGSchneider
VictorGSchneider merged commit fad7f76 into main Oct 15, 2026
7 checks passed
@VictorGSchneider
VictorGSchneider deleted the claude/youthful-tesla-gbhv5o branch October 15, 2026 23:35
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.

2 participants