Skip to content

fix: handle existing release when creating from tag push#79

Merged
blaspat merged 1 commit into
mainfrom
fix/release-existing-tag
Jun 23, 2026
Merged

fix: handle existing release when creating from tag push#79
blaspat merged 1 commit into
mainfrom
fix/release-existing-tag

Conversation

@blaspat

@blaspat blaspat commented Jun 23, 2026

Copy link
Copy Markdown
Owner

When a tag is created from GitHub web UI, it auto-creates a release with the same name. The workflow's gh release create then fails with "a release with the same tag name already exists".\n\nFix: Check if the release exists first with gh release view. If it does, upload the asset with --clobber. If not, create a new release with --generate-notes.

Signed-off-by: Blasius Patrick <blasius.patrick@gmail.com>
@blaspat blaspat merged commit 572ed55 into main Jun 23, 2026
2 checks passed
@blaspat blaspat deleted the fix/release-existing-tag branch June 23, 2026 12:10
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