From f3a379add18d536abb4bc1c27bbc0d779b6ce440 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 13 Nov 2026 03:03:30 +1100 Subject: [PATCH] ci(promote): pass the version through env, not into the script --- .github/workflows/promote.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index c94f15d3d..13a783f1f 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -24,16 +24,20 @@ jobs: run: echo "${{ secrets.DEPLOY_TOKEN }}" | docker login git.catlow.cloud -u "${{ github.actor }}" --password-stdin - name: Fetch the release's archied + env: + VERSION: ${{ inputs.version }} run: | set -e - image="git.catlow.cloud/sam/archied:v${{ inputs.version }}" + image="git.catlow.cloud/sam/archied:v$VERSION" docker pull -q "$image" container="$(docker create "$image")" docker cp "$container:/usr/local/bin/archied" "$RUNNER_TEMP/archied" docker rm "$container" >/dev/null - name: Promote to stable + env: + VERSION: ${{ inputs.version }} run: | "$RUNNER_TEMP/archied" release promote \ - -version "${{ inputs.version }}" \ + -version "$VERSION" \ -latest git.catlow.cloud/sam/archied,git.catlow.cloud/sam/archie-agent