From de6956ef51e7a292d74d61208dde4e0f558c04f3 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Thu, 12 Dec 2024 07:47:25 -0800 Subject: [PATCH] fix(cd): script uses the supplied tag Otherwise it picks up `main` when the GITHUB_REF is based on a cron trigger --- .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 135e882..a908c02 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 # This guarantees that users can easily switch from a released artifact to a source archive # with minimal differences in their code (e.g. strip_prefix remains the same)