Improve the bump tool
This commit is contained in:
parent
03248f5bff
commit
9d9bca5e3b
1 changed files with 9 additions and 13 deletions
|
@ -123,12 +123,7 @@ release() {
|
|||
|
||||
_release_branch="$_major-$_minor-stable"
|
||||
|
||||
if $opt_manual; then
|
||||
echo -e "Bump version to $_version (manual release)\n"
|
||||
bump "$_version"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! $opt_manual; then
|
||||
if [[ -z $(git branch -v | grep "$_release_branch") ]]; then
|
||||
git checkout -b "$_release_branch"
|
||||
_new_release_branch=true
|
||||
|
@ -137,6 +132,7 @@ release() {
|
|||
# cherry-pick the latest commit from master branch to release branch
|
||||
git cherry-pick "$(git rev-parse $DEFAULT_BRANCH)"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -e "Bump version to $_version\n"
|
||||
bump "$_version"
|
||||
|
|
Loading…
Reference in a new issue