From 71c224cc6d5b7695e91282b39ff9b76cc0d5f560 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 12 Dec 2024 07:45:33 -0800 Subject: [PATCH] chore: fix tag name when called by workflow --- .github/workflows/release_prep.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_prep.sh b/.github/workflows/release_prep.sh index 6229e5f2..4fec95ec 100755 --- a/.github/workflows/release_prep.sh +++ b/.github/workflows/release_prep.sh @@ -2,9 +2,9 @@ set -o errexit -o nounset -o pipefail -# Set by GH actions, see -# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables -TAG=${GITHUB_REF_NAME} +# Argument provided by reusable workflow caller, see +# https://github.com/bazel-contrib/.github/blob/d197a6427c5435ac22e56e33340dff912bc9334e/.github/workflows/release_ruleset.yaml#L72 +TAG=$1 # The prefix is chosen to match what GitHub generates for source archives PREFIX="rules_oci-${TAG:1}" ARCHIVE="rules_oci-$TAG.tar.gz"