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