ci: fix issues faced during release

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3767
GitOrigin-RevId: 67c6536826f451161b8dda8efcf1e7d37469cc42
This commit is contained in:
Divi 2022-02-23 11:56:59 +05:30 committed by hasura-bot
parent cb893e6e3f
commit 50d9c112e7

View File

@ -21,12 +21,4 @@ VERSION="${GIT_TAG_EXACT}"
test -n "$VERSION" || VERSION="${GIT_BRANCH}-${GIT_SHA}${GIT_DIRTY}"
VERSION="$(echo $VERSION | tr -cd '[[:alnum:]]._-')"
# Sanity check: currently some parts of CI reference BUILDKITE_TAG, others call
# this script again and these must agree.
if [ -n "$BUILDKITE_TAG" ] && [ "$VERSION" != "$BUILDKITE_TAG" ]; then
echo "BUILDKITE_TAG is set as \"$BUILDKITE_TAG\" but somehow does not agree with repo tag \"$VERSION\"!" 1>&2
exit 1
fi
echo "$VERSION"