Skip to content

Commit 445b6e2

Browse files
committed
revert PREV_TAG change
1 parent 2c22477 commit 445b6e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/version-common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44

55
git fetch --tags --force
66

7-
PREV_TAG=`git describe --tags --abbrev=0`
7+
VERSION=$(git describe --tags | cut -d '+' -f1)
88
REV_COUNT=""
99
INTERNAL_VERSION=""
1010

@@ -13,7 +13,7 @@ if [[ ${BUILDKITE_TAG:-""} != "" ]]; then
1313
VERSION="$BUILDKITE_TAG"
1414
# when executing this script on the master branch, we are releasing internal versions
1515
elif [[ ${BUILDKITE_BRANCH:-} == "master" || ${APPVEYOR_REPO_BRANCH:-} == "master" ]]; then
16-
INTERNAL_VERSION="${VERSION}+internal"
16+
INTERNAL_VERSION="${PREV_TAG}+internal"
1717

1818
# append short sha to avoid collisions with previous releases
1919
REV_COUNT=$(git rev-parse --short HEAD)

0 commit comments

Comments
 (0)