From 71d5faea9cdea750dfe5322706448cb92f1b6490 Mon Sep 17 00:00:00 2001 From: Ayato Tachibana Date: Thu, 11 Nov 2021 23:19:46 +0900 Subject: [PATCH] fix RELEASE_TAG Signed-off-by: Ayato Tachibana --- .github/workflows/publish-multiarch-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-multiarch-image.yaml b/.github/workflows/publish-multiarch-image.yaml index 6d92a39ea76f6..8003b88cd0055 100644 --- a/.github/workflows/publish-multiarch-image.yaml +++ b/.github/workflows/publish-multiarch-image.yaml @@ -28,7 +28,7 @@ jobs: set -xue # Target version must match major.minor.patch and optional -rcX suffix # where X must be a number. - TARGET_VERSION=${SOURCE_TAG#*v} + TARGET_VERSION=${SOURCE_TAG#refs/tags/v} if ! echo "${TARGET_VERSION}" | egrep '^[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)*$'; then echo "::error::Target version '${TARGET_VERSION}' is malformed, refusing to continue." >&2 exit 1 @@ -39,7 +39,7 @@ jobs: TARGET_BRANCH="release-${TARGET_VERSION%\.[0-9]*}" # The release tag is the source tag - RELEASE_TAG="${SOURCE_TAG}" + RELEASE_TAG="${SOURCE_TAG#refs/tags/}" # Make the variables available in follow-up steps echo "TARGET_VERSION=${TARGET_VERSION}" >> $GITHUB_ENV