From a447523749fce7a4a6375fa81f50217c7d8e2d68 Mon Sep 17 00:00:00 2001 From: Mathias Date: Mon, 5 Oct 2026 09:33:15 +0200 Subject: [PATCH] ci: move template expressions out of run: shells (signals#47) "Derive image tags" expanded ${{ github.ref }} into the run: body. A ref name may contain $(...) and the expansion happens before the shell parses the script, so it now arrives via env: REF instead. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5fa1296..d9955e7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -53,10 +53,12 @@ jobs: - name: Derive image tags id: meta + env: + # signals#47: a ref name can carry $(...); pass it via env, not ${{ }}. + REF: ${{ github.ref }} run: | SHA=$(git rev-parse --short HEAD) echo "sha-tag=${SHA}" >> "$GITHUB_OUTPUT" - REF="${{ github.ref }}" if [[ "$REF" == refs/tags/v* ]]; then echo "version-tag=${REF#refs/tags/}" >> "$GITHUB_OUTPUT" fi