From 4b7ac39ebaf71c8aa700489808e023531920d4ae Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 1 Mar 2024 10:37:33 -0700 Subject: [PATCH] fix `push-templates-tag` grep pattern (#2313) I messed this one up the first time; we should convert e.g. refs/tags/v2.3.0 to spin/templates/v2.3, not spin/templates/refs/tags/v2.3. Signed-off-by: Joel Dice --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da71fbcb3..cca3ea93b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -264,7 +264,7 @@ jobs: - name: Set the tag to spin/templates/v* shell: bash run: | - spin_tag=$(echo "${{ github.ref }}" | grep -Eo "refs/tags/v[0-9.]+") + spin_tag=$(echo "${{ github.ref }}" | grep -Eo "v[0-9.]+") IFS=. read -r major minor patch <<< "${spin_tag}" echo "TEMPLATE_TAG=spin/templates/$major.$minor" >> $GITHUB_ENV