Skip to content

Commit

Permalink
[7.1.0] Set RC branch when creating GitHub releases (#21477)
Browse files Browse the repository at this point in the history
Commit
748e18a

PiperOrigin-RevId: 609523222
Change-Id: I34b6ae7d497b69f64f80a54614a52fcf321d47e6

Co-authored-by: Googler <keerthanakumar@google.com>
  • Loading branch information
bazel-io and keertk authored Feb 22, 2024
1 parent 9eb6661 commit 4ddd2ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,15 @@ function release_to_github() {
local release_name=$(get_release_name)
local rc=$(get_release_candidate)
local full_release_name=$(get_full_release_name)
local release_branch=$(get_release_branch)

if [ -n "${release_name}" ]; then
local github_token="$(gsutil cat gs://bazel-trusted-encrypted-secrets/github-trusted-token.enc | \
gcloud kms decrypt --project bazel-public --location global --keyring buildkite --key github-trusted-token --ciphertext-file - --plaintext-file -)"
if [ -z "${rc}" ]; then
GITHUB_TOKEN="${github_token}" github-release "bazelbuild/bazel" "${release_name}" "" "$(get_release_page)" "${artifact_dir}/*"
else
GITHUB_TOKEN="${github_token}" github-release -prerelease "bazelbuild/bazel" "${full_release_name}" "" "$(get_release_page)" "${artifact_dir}/*"
GITHUB_TOKEN="${github_token}" github-release -prerelease "bazelbuild/bazel" "${full_release_name}" "${release_branch}" "$(get_release_page)" "${artifact_dir}/*"
fi
fi
}
Expand Down

0 comments on commit 4ddd2ae

Please sign in to comment.