We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c22477 commit 445b6e2Copy full SHA for 445b6e2
scripts/version-common.sh
@@ -4,7 +4,7 @@ set -eu
4
5
git fetch --tags --force
6
7
-PREV_TAG=`git describe --tags --abbrev=0`
+VERSION=$(git describe --tags | cut -d '+' -f1)
8
REV_COUNT=""
9
INTERNAL_VERSION=""
10
@@ -13,7 +13,7 @@ if [[ ${BUILDKITE_TAG:-""} != "" ]]; then
13
VERSION="$BUILDKITE_TAG"
14
# when executing this script on the master branch, we are releasing internal versions
15
elif [[ ${BUILDKITE_BRANCH:-} == "master" || ${APPVEYOR_REPO_BRANCH:-} == "master" ]]; then
16
- INTERNAL_VERSION="${VERSION}+internal"
+ INTERNAL_VERSION="${PREV_TAG}+internal"
17
18
# append short sha to avoid collisions with previous releases
19
REV_COUNT=$(git rev-parse --short HEAD)
0 commit comments