Skip to content

Commit 443c8aa

Browse files
committed
[buildkite] remove buildkite refs in release scripts
1 parent 8bf232a commit 443c8aa

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

scripts/update-version.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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
3624
fi
3725

3826
echo "VERSION is ${VERSION}"

0 commit comments

Comments
 (0)