Repository navigation
ci(release): create the draft once and tag up front - #8
Merged
Merged
Conversation
The four matrix jobs each asked tauri-action to create the draft, and two could race to create duplicates (v0.2.0 got two). Publishing a draft from a workflow_call run also created the tag, and that push rebuilt the release. A create job now finds or makes the draft and passes its id to every build. It tags the commit with GITHUB_TOKEN first, which triggers nothing, and it skips the build when the tag is already published. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
v0.2.0 ended up with a published release and a duplicate draft (id 394686744). There were two causes:
workflow_call), the tag didn't exist until you published the draft. Publishing created it, and that tag push ranrelease.ymlagain.Fix
createjob. It runs once, before the matrix:GITHUB_TOKEN. Those pushes trigger no workflows, so publishing later creates nothing new. For a tag pushed by hand, the tag already exists and nothing changes.-).releaseIdto tauri-action instead oftagNameand the draft options.Checked
actionlint, which includes shellcheck on the run script.v0.2.0finds the published release 394679607 (not the leftover draft), so no build runs.CI-only change, so no changeset. The first real test is the next version PR merge.
🤖 Generated with Claude Code