From 767ff0574832ec7dee42d927288af7fbfc7040e3 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Mon, 18 May 2026 13:03:55 -0500 Subject: [PATCH] fix(ci): rewrite RC version header to stable in promote workflow When promoting an RC to stable, the release notes body contained the RC version header (e.g. "1.3.0-rc.10 (2026-05-18)") verbatim. This adds a fetch step that rewrites only the first line's version string to the stable version before creating the release, and switches from --generate-notes to --notes-file so the corrected body is used. Also removes --draft and uses --latest so the release publishes directly as the latest stable release. --- .github/workflows/promote-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/promote-release.yml b/.github/workflows/promote-release.yml index ee5032647..e59fa4a96 100644 --- a/.github/workflows/promote-release.yml +++ b/.github/workflows/promote-release.yml @@ -69,8 +69,11 @@ jobs: env: GH_TOKEN: ${{ steps.app-token.outputs.token }} RC_TAG: ${{ inputs.rc_tag }} + STABLE_TAG: ${{ steps.version.outputs.stable_tag }} run: | BODY=$(gh release view "$RC_TAG" --json body -q .body) + STABLE_VERSION="${STABLE_TAG#v}" + BODY=$(echo "$BODY" | sed "1s/^.*-rc\.[0-9]* /$STABLE_VERSION /") { echo "body<> "$GITHUB_OUTPUT" - name: create stable release