Skip to content

fix: skip draft releases when resolving latest in install script#1007

Merged
fujiwara merged 1 commit intov2from
skip-draft-releases-in-install-script
Apr 28, 2026
Merged

fix: skip draft releases when resolving latest in install script#1007
fujiwara merged 1 commit intov2from
skip-draft-releases-in-install-script

Conversation

@fujiwara
Copy link
Copy Markdown
Collaborator

Summary

When a new draft release exists (e.g. just after tagpr creates one but before assets are uploaded), version: latest fails with No matching release asset found for linux/....

The /releases API returns draft releases too, sorted by creation date, and the existing jq filter only excluded prerelease, not draft. The freshly-created draft (with a tag_name but an empty assets array) was therefore selected as the latest release.

Add select(.draft==false) to the filter so drafts are skipped.

The /releases API returns draft releases too, sorted by creation date,
so a freshly created draft (with a tag_name but no assets yet) ended up
selected as the latest release and caused the install step to fail with
no matching asset. Filter out drafts in the jq query.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: fujiwara <fujiwara.shunichiro@gmail.com>
@fujiwara fujiwara merged commit f32d02d into v2 Apr 28, 2026
11 of 12 checks passed
@fujiwara fujiwara deleted the skip-draft-releases-in-install-script branch April 28, 2026 13:57
@github-actions github-actions Bot mentioned this pull request Apr 28, 2026
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