Skip to content

version release: fix finalize isLatest check#331

Open
gmarzot wants to merge 1 commit into
mainfrom
fix/release-finalize-islatest
Open

version release: fix finalize isLatest check#331
gmarzot wants to merge 1 commit into
mainfrom
fix/release-finalize-islatest

Conversation

@gmarzot

@gmarzot gmarzot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Fixes #330.

The Confirm release published step in the finalize job queried gh release view --json isLatest,..., but isLatest is not a supported --json field on gh release view (it only exists on gh release list), so the step always exited 1 — seen on the v0.2.0 run (https://github.com/openmoq/moxygen/actions/runs/30036284298), where the release itself published fine with all assets.

Changes:

  • Keep isPrerelease/name from gh release view; derive latest-ness by comparing $TAG against gh api repos/$REPO/releases/latest. Still no --latest forcing — GitHub's auto-latest algorithm stays authoritative (matters for hotfix patches from release/vM.m branches).
  • Fix the stale finalize job header comment ("flip draft → published" → the step only confirms; the release is published earlier in the flow).

Tested locally against v0.2.0:

isPrerelease=false name=moxygen 0.2.0
isLatest=true (latest=v0.2.0)

YAML validated. No release artifacts affected; v0.2.0 needs no re-cut.


This change is Reviewable

gh release view has no isLatest --json field (only gh release list
does), so the Confirm release published step always exited 1 after the
release was already live. Keep isPrerelease/name from release view and
derive isLatest by comparing the tag against the releases/latest API,
still without forcing --latest. Also fix the stale finalize header
comment (the step confirms; the release is published earlier).

Fixes #330
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.

version release: finalize job fails — gh release view has no isLatest JSON field

1 participant