From 6304ad7e24ecda02c194e70e7d4101f47577fca8 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 5 Sep 2026 17:37:16 -0500 Subject: [PATCH] ci: use the expression form for the tag ref, not the env var MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit promote.yml handed v26.8.0-beta.0 to GitHub with `${{ github.ref_name }}`, so that form is proven on this act_runner. `$GITHUB_REF_NAME` is not — act_runner 0.2.13 may or may not export it, and the failure mode is silent in the worst way: `git push github "refs/tags/"` with an empty name, a tag that never leaves this forge, and a release that simply never happens on GitHub. Signed-off-by: Diego Resendez --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 82ba2ed..8646665 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -193,7 +193,12 @@ jobs: GH_TOKEN: ${{ secrets.GH_PROMOTE_TOKEN }} run: | git remote add github "https://x-access-token:${GH_TOKEN}@github.com/Expressive-Tea/matcha.git" - git push github "refs/tags/$GITHUB_REF_NAME" + # `${{ github.ref_name }}` rather than $GITHUB_REF_NAME: the expression + # is what promote.yml used to hand v26.8.0-beta.0 to GitHub, so it is + # proven on this act_runner. Whether the env var is exported here is + # not, and getting it wrong would push an empty ref and leave the tag + # on this forge alone. + git push github "refs/tags/${{ github.ref_name }}" # crates.io = production only. # crates.io = production only, via OIDC Trusted Publishing (no CARGO_TOKEN).