From df0a45b90164df3b8d7e554a33736d70f2a979cb Mon Sep 17 00:00:00 2001 From: Alexander Sharov Date: Fri, 27 Dec 2024 20:09:24 +0400 Subject: [PATCH] fix: tag extraction for ci --- .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 cbc7fec..b159238 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,7 +63,7 @@ jobs: set -x EXTRA_GORELEASER_COMMANDS="" - TAG=${{ github.ref | replace('refs/tags/', '') }} + TAG=$(echo $GITHUB_REF | sed 's/refs\/tags\///') if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then EXTRA_GORELEASER_COMMANDS="-f .goreleaser_announce.yml ${EXTRA_GORELEASER_COMMANDS}" fi