From 1271f51d1ab9345b570f71540384bf38feb1d72b Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sun, 29 Mar 2026 18:50:39 -0500 Subject: [PATCH] fix: use $GITHUB_REF_NAME env var instead of ${{ github.ref_name }} expression Gitea 1.22 expression evaluator rewrites github.ref_name to format('{0}', github.ref_name) which produces '%!t(string=v0.1.0)' instead of 'v0.1.0'. Use the pre-set shell env var directly. Co-Authored-By: Claude Sonnet 4.6 (1M context) --- .gitea/workflows/release.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 9ab31dd2..86e40a44 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -8,8 +8,6 @@ on: jobs: build-linux-amd64: runs-on: linux-amd64 - env: - RELEASE_TAG: ${{ github.ref_name }} container: image: rust:1.88-slim steps: @@ -39,7 +37,7 @@ jobs: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | API="http://172.0.0.29:3000/api/v1/repos/$GITHUB_REPOSITORY" - TAG="$RELEASE_TAG" + TAG="$GITHUB_REF_NAME" # Create release (idempotent) curl -sf -X POST "$API/releases" \ -H "Authorization: token $RELEASE_TOKEN" \ @@ -57,8 +55,6 @@ jobs: build-windows-amd64: runs-on: linux-amd64 - env: - RELEASE_TAG: ${{ github.ref_name }} container: image: rust:1.88-slim steps: @@ -90,7 +86,7 @@ jobs: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | API="http://172.0.0.29:3000/api/v1/repos/$GITHUB_REPOSITORY" - TAG="$RELEASE_TAG" + TAG="$GITHUB_REF_NAME" curl -sf -X POST "$API/releases" \ -H "Authorization: token $RELEASE_TOKEN" \ -H "Content-Type: application/json" \ @@ -106,8 +102,6 @@ jobs: build-linux-arm64: runs-on: linux-arm64 - env: - RELEASE_TAG: ${{ github.ref_name }} container: image: rust:1.88-slim steps: @@ -137,7 +131,7 @@ jobs: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} run: | API="http://172.0.0.29:3000/api/v1/repos/$GITHUB_REPOSITORY" - TAG="$RELEASE_TAG" + TAG="$GITHUB_REF_NAME" curl -sf -X POST "$API/releases" \ -H "Authorization: token $RELEASE_TOKEN" \ -H "Content-Type: application/json" \