diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 69715d751..d756d5254 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,6 @@ jobs: bazel_test_command: "bazel test //src/... //test/... //third_party/..." prerelease: false release_files: rules_scala-*.tar.gz - release_prep_command: .github/workflows/workspace_snippet.sh tag_name: ${{ inputs.tag_name || github.ref_name }} publish-to-bcr: diff --git a/.github/workflows/workspace_snippet.sh b/.github/workflows/release_prep.sh similarity index 86% rename from .github/workflows/workspace_snippet.sh rename to .github/workflows/release_prep.sh index 3c86e4249..c0c4cf7ef 100755 --- a/.github/workflows/workspace_snippet.sh +++ b/.github/workflows/release_prep.sh @@ -2,9 +2,8 @@ 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}" +# Single tag arg is passed by https://github.com/bazel-contrib/.github/blob/master/.github/workflows/release_ruleset.yaml +TAG="$1" VERSION="${TAG:1}" PREFIX="rules_scala-${VERSION}" ARCHIVE="rules_scala-$TAG.tar.gz"