Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/version-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ jobs:
xargs -0 -n1 -P 6 -I{} gh release upload "$TAG" --repo "$REPO" {} --clobber

# ════════════════════════════════════════════════════════════════════════════
# Finalize: mark release as latest once all uploads succeeded.
# Tolerates portable-build being skipped (has_portable=false).
# Finalize: confirm the release is fully published once all uploads
# succeeded. Tolerates portable-build being skipped (has_portable=false).
# ════════════════════════════════════════════════════════════════════════════

finalize:
Expand Down Expand Up @@ -487,4 +487,8 @@ jobs:
# would mark a hotfix patch from a release/vM.m branch as
# latest even when a newer vM.(m+1) line exists.
echo "Released: $TAG"
gh release view "$TAG" --repo "$REPO" --json isLatest,isPrerelease,name --jq '"isLatest=\(.isLatest) isPrerelease=\(.isPrerelease) name=\(.name)"'
# isLatest is not a --json field on `gh release view` (only on
# `gh release list`), so derive it from the releases/latest API.
gh release view "$TAG" --repo "$REPO" --json isPrerelease,name --jq '"isPrerelease=\(.isPrerelease) name=\(.name)"'
LATEST=$(gh api "repos/$REPO/releases/latest" --jq .tag_name)
echo "isLatest=$([ "$LATEST" = "$TAG" ] && echo true || echo false) (latest=$LATEST)"
Loading