Skip to content

Commit 2004f33

Browse files
committed
[SPARK-52255][BUILD] Adds a new environment variable SPARK_RC_COUNT in release script
### What changes were proposed in this pull request? This PR proposes to add `SPARK_RC_COUNT` environment variable to specify the RC count. ### Why are the changes needed? To make the Spark release fully without developer interaction. ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #50975 from HyukjinKwon/SPARK-52255. Authored-by: Hyukjin Kwon <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent ff0d9e4 commit 2004f33

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dev/create-release/do-release-docker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ USER=$USER
153153
DEBUG_MODE=$DEBUG_MODE
154154
ANSWER=$ANSWER
155155
GITHUB_ACTIONS=$GITHUB_ACTIONS
156+
SPARK_RC_COUNT=$SPARK_RC_COUNT
156157
EOF
157158

158159
JAVA_VOL=

dev/create-release/release-util.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ function get_release_info {
141141
export RELEASE_VERSION=$(read_config "Release" "$RELEASE_VERSION")
142142

143143
RC_COUNT=$(read_config "RC #" "$RC_COUNT")
144+
if [ -n "$SPARK_RC_COUNT" ]; then
145+
RC_COUNT=$SPARK_RC_COUNT
146+
fi
144147

145148
# Check if the RC already exists, and if re-creating the RC, skip tag creation.
146149
RELEASE_TAG="v${RELEASE_VERSION}-rc${RC_COUNT}"

0 commit comments

Comments
 (0)