From 748e18a66e91b9344df00f2f017bba64a400b2c6 Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 22 Feb 2024 15:39:38 -0800 Subject: [PATCH] Set RC branch when creating GitHub releases PiperOrigin-RevId: 609523222 Change-Id: I34b6ae7d497b69f64f80a54614a52fcf321d47e6 --- scripts/ci/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index eed915c97ce13e..4bcfa560096017 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh @@ -147,6 +147,7 @@ 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 | \ @@ -154,7 +155,7 @@ function release_to_github() { 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 }