ci: use the expression form for the tag ref, not the env var
CI / installer (macos-14) (pull_request) Successful in 3s
CI / check (pull_request) Successful in 27s
CI / starter (bun) (pull_request) Successful in 32s
CI / starter (deno) (pull_request) Successful in 31s
CI / starter (edge) (pull_request) Successful in 37s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (node) (pull_request) Successful in 32s

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 <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-05 17:37:16 -05:00
1 parent 483cc23dea
commit 6304ad7e24
1 file changed
+6 -1
+6 -1
View File
@@ -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).