fix(publish): retry draft release creation until tag is indexed#510
Merged
Conversation
GitHub's Releases API creates untagged-* placeholder tag names for draft releases when the tag hasn't been fully indexed yet. Add a retry loop that creates the draft, verifies the tag_name matches, and deletes + retries if it got an untagged-* placeholder. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #510 +/- ##
=======================================
Coverage 77.88% 77.88%
=======================================
Files 48 48
Lines 6660 6660
Branches 6660 6660
=======================================
Hits 5187 5187
Misses 1109 1109
Partials 364 364 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merged
jdx
pushed a commit
that referenced
this pull request
Feb 18, 2026
### 🐛 Bug Fixes - **(publish)** retry draft release creation until tag is indexed by [@jdx](https://github.com/jdx) in [#510](#510)
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Feb 19, 2026
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [usage](https://github.com/jdx/usage) | minor | `2.17.0` → `2.18.0` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>jdx/usage (usage)</summary> ### [`v2.18.0`](https://github.com/jdx/usage/blob/HEAD/CHANGELOG.md#2180---2026-02-18) [Compare Source](jdx/usage@v2.17.4...v2.18.0) ##### 🚀 Features - **(publish)** extract communique into separate enhance-release job by [@​jdx](https://github.com/jdx) in [#​513](jdx/usage#513) ### [`v2.17.4`](https://github.com/jdx/usage/blob/HEAD/CHANGELOG.md#2174---2026-02-18) [Compare Source](jdx/usage@v2.17.0...v2.17.4) ##### 🐛 Bug Fixes - **(publish)** retry draft release creation until tag is indexed by [@​jdx](https://github.com/jdx) in [#​510](jdx/usage#510) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNC4yIiwidXBkYXRlZEluVmVyIjoiNDMuMjQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6Om1pbm9yIl19-->
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.
Summary
untagged-*placeholder tag names because the workflow calls the API within ~5s of checkout, before GitHub has indexed the tagtag_namematches, and deletes + retries (up to 30 attempts × 5s) if it got anuntagged-*placeholderTest plan
taiki-e/upload-rust-binary-actionfinds the release successfully in build-and-publish jobs🤖 Generated with Claude Code
Note
Low Risk
Workflow-only change that adds a bounded retry/delete loop to handle a GitHub indexing race; main risk is longer CI time or failure if the GitHub API behavior changes.
Overview
The
publish-cliGitHub Actions workflow now retries draft release creation after a tag push, verifying the created release’stag_namematches the pushed tag.If GitHub returns an
untagged-*placeholder, the workflow deletes the draft release, waits 5 seconds, and retries up to 30 times before failing with an explicit error.Written by Cursor Bugbot for commit a40bd07. This will update automatically on new commits. Configure here.