File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,18 +21,6 @@ if [[ ${RELEASE_VERSION:-""} != "" ]]; then
2121 else
2222 VERSION=" ${RELEASE_VERSION} "
2323 fi
24- # when executing this script with a git tag defined by buildkite, we are releasing to production
25- elif [[ ${BUILDKITE_TAG:- " " } != " " ]]; then
26- VERSION=" $BUILDKITE_TAG "
27- # when executing this script on the master/staging branch, we are releasing internal versions
28- elif [[ ${BUILDKITE_BRANCH:- } == " master" || ${BUILDKITE_BRANCH:- } == " staging" ]]; then
29- VERSION=${PREV_TAG}
30-
31- # if there are multiple revisions, append that revision number
32- _REV_COUNT=$( git rev-list " ${PREV_TAG} " ..HEAD --count 2> /dev/null) || true
33- if [[ ! -z " ${_REV_COUNT:- } " ]]; then
34- VERSION=" ${PREV_TAG} +internal.${_REV_COUNT} "
35- fi
3624fi
3725
3826echo " VERSION is ${VERSION} "
You can’t perform that action at this time.
0 commit comments