Skip to content

ci: release workflow leaves an existing release alone - #24

Merged
dskripchenko merged 1 commit into
masterfrom
ci/release-idempotent
Oct 26, 2026
Merged

dskripchenko merged 1 commit into
masterfrom
ci/release-idempotent

Conversation

@dskripchenko

Copy link
Copy Markdown
Owner

The release runs for v6.0.2, v6.1.0 and v6.2.0 failed (e.g. 40380876693): HTTP 422 … Release.tag_name already exists.

Cause

Those releases were created by hand with gh release create, which also pushes the tag. The tag push triggered this workflow, which tried to create the same release again. The releases themselves are fine — same title (the tag) and notes (the CHANGELOG section) the workflow would have written; only the duplicate step failed.

Fix

"Publish it" skips when the release already exists (as the plugin's workflow does), so a hand-made release no longer turns the run red. The normal path — push a tag, the workflow creates the release — is unchanged.

The three red runs can't be turned green by re-running: a re-run uses the workflow file at the tagged commit. From here on, releases of this repository are published by pushing the tag.

🤖 Generated with Claude Code

gh release create pushes the tag itself, so a release made by hand
triggered this workflow, which tried to create it again and failed with
'already exists' — v6.0.2, v6.1.0 and v6.2.0 went red over releases that
are fine. It now skips the step when the release exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dskripchenko
dskripchenko merged commit b3f4e80 into master Oct 26, 2026
7 checks passed
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