Skip to content

Commit 26b658f

Browse files
committed
[SPARK-30253][INFRA] Do not add commits when releasing preview version
### What changes were proposed in this pull request? This PR add support do not add commits to master branch when releasing preview version. ### Why are the changes needed? We need manual revert this change, example: ![image](https://user-images.githubusercontent.com/5399861/70788945-f9d15180-1dcc-11ea-81f5-c0d89c28440a.png) ### Does this PR introduce any user-facing change? No. ### How was this patch tested? manual test Closes #26879 from wangyum/SPARK-30253. Authored-by: Yuming Wang <[email protected]> Signed-off-by: Yuming Wang <[email protected]>
1 parent 67b644c commit 26b658f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev/create-release/release-tag.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ git commit -a -m "Preparing development version $NEXT_VERSION"
104104
if ! is_dry_run; then
105105
# Push changes
106106
git push origin $RELEASE_TAG
107-
git push origin HEAD:$GIT_BRANCH
107+
if [[ $RELEASE_VERSION != *"preview"* ]]; then
108+
git push origin HEAD:$GIT_BRANCH
109+
else
110+
echo "It's preview release. We only push $RELEASE_TAG to remote."
111+
fi
108112

109113
cd ..
110114
rm -rf spark

0 commit comments

Comments
 (0)