Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
provide defaults for update tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonthenen committed Jul 1, 2021
1 parent 8ed40fe commit 751b2e1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion hack/update-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ set -o pipefail
set -o xtrace

FAKE_RELEASE="${FAKE_RELEASE:-""}"
BUILD_VERSION="${BUILD_VERSION:-""}"
OLD_BUILD_VERSION="${OLD_BUILD_VERSION:-""}"
NEW_BUILD_VERSION="${NEW_BUILD_VERSION:-""}"

# if BUILD_VERSION is set, then this is just an alpha, beta, or rc tag
# and we only need to increment the -dev.X version
if [[ -n "${BUILD_VERSION}" ]]; then
if [[ "${BUILD_VERSION}" != "" ]]; then
OLD_BUILD_VERSION=${BUILD_VERSION}
NEW_BUILD_VERSION=${BUILD_VERSION}
fi
if [[ -z "${OLD_BUILD_VERSION}" ]]; then
echo "OLD_BUILD_VERSION is not set"
exit 1
fi
if [[ -z "${NEW_BUILD_VERSION}" ]]; then
echo "NEW_BUILD_VERSION is not set"
exit 1
fi

WHOAMI=$(whoami)
if [[ "${WHOAMI}" != "runner" ]]; then
Expand Down

0 comments on commit 751b2e1

Please sign in to comment.