[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 <yumwang@ebay.com> Signed-off-by: Yuming Wang <wgyumg@gmail.com>
This commit is contained in:
parent
67b644c3d7
commit
26b658f6fb
|
@ -104,7 +104,11 @@ git commit -a -m "Preparing development version $NEXT_VERSION"
|
|||
if ! is_dry_run; then
|
||||
# Push changes
|
||||
git push origin $RELEASE_TAG
|
||||
git push origin HEAD:$GIT_BRANCH
|
||||
if [[ $RELEASE_VERSION != *"preview"* ]]; then
|
||||
git push origin HEAD:$GIT_BRANCH
|
||||
else
|
||||
echo "It's preview release. We only push $RELEASE_TAG to remote."
|
||||
fi
|
||||
|
||||
cd ..
|
||||
rm -rf spark
|
||||
|
|
Loading…
Reference in a new issue