Merge pull request #22046 from akka/wip-version-check-patriknw
prevent mistake of releasing from wrong branch (for validation)
This commit is contained in:
commit
eeda6cc2c5
1 changed files with 5 additions and 1 deletions
|
|
@ -275,7 +275,11 @@ try ssh -t ${release_server} echo "Successfully contacted release server."
|
|||
|
||||
echolog "Getting current project version from sbt..."
|
||||
declare -r current_version=$(get_current_version)
|
||||
echolog "Current version is ${current_version}"
|
||||
echolog "Current version is ${current_version} on branch $initial_branch"
|
||||
|
||||
if [ "${current_version:0:3}" != "${version:0:3}" ]; then
|
||||
fail "Releasing $version from wrong branch $initial_branch with version $current_version"
|
||||
fi
|
||||
|
||||
# check out a release branch
|
||||
try git checkout -b ${release_branch}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue