Skip to content

Fix: Skip release creation if already exists#17

Merged
TheKathan merged 1 commit into
mainfrom
fix/skip-existing-releases
Feb 13, 2026
Merged

Fix: Skip release creation if already exists#17
TheKathan merged 1 commit into
mainfrom
fix/skip-existing-releases

Conversation

@TheKathan
Copy link
Copy Markdown
Owner

Issue

Workflow fails with HTTP 422: Release.tag_name already exists when trying to create a release for an existing tag.

Solution

Add check using gh release view before attempting to create release. If release exists, skip creation and exit successfully.

Changes

  • Check if release exists before creating
  • Log message when skipping
  • Prevents workflow failures on existing releases

Testing

  • ✅ Handles case when release doesn't exist (creates normally)
  • ✅ Handles case when release exists (skips gracefully)
  • ✅ No workflow failures

Add check before creating GitHub release to prevent '422 tag already exists' error when release already exists.
@github-actions
Copy link
Copy Markdown

📦 Version: v1.0.12-fix.1

Field Value
Type Pre-release
Branch fix/skip-existing-releases
Bump Patch

@TheKathan TheKathan merged commit 8e2cb62 into main Feb 13, 2026
1 check passed
@TheKathan TheKathan deleted the fix/skip-existing-releases branch February 13, 2026 00:03
@TheKathan TheKathan restored the fix/skip-existing-releases branch February 13, 2026 00:35
@TheKathan TheKathan deleted the fix/skip-existing-releases branch February 13, 2026 00:36
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