mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 17:11:34 +02:00
Merge pull request #173 from marineam/auto-rev
fix(tag_release): increment minor version if major is unchanged
This commit is contained in:
commit
7453f7b749
13
tag_release
13
tag_release
@ -7,9 +7,16 @@
|
||||
SCRIPT_ROOT=$(dirname $(readlink -f "$0"))
|
||||
. "${SCRIPT_ROOT}/common.sh" || exit 1
|
||||
|
||||
DEFINE_integer build "${TODAYS_VERSION}" \
|
||||
"Branch name (aka 'build'), should be days since 2013-7-1"
|
||||
DEFINE_integer branch 0 "Branch revision, normally 0"
|
||||
DEFAULT_BUILD=${TODAYS_VERSION}
|
||||
DEFAULT_BRANCH=0
|
||||
|
||||
# Increment $BRANCH if we already are on a version from today
|
||||
if [[ ${DEFAULT_BUILD} -eq ${COREOS_BUILD} ]]; then
|
||||
DEFAULT_BRANCH=$((COREOS_BRANCH + 1))
|
||||
fi
|
||||
|
||||
DEFINE_integer build ${DEFAULT_BUILD} "Branch major version (aka 'build')"
|
||||
DEFINE_integer branch ${DEFAULT_BRANCH} "Branch revision or minor version"
|
||||
DEFINE_integer patch 0 "Branch patch id, normally 0"
|
||||
DEFINE_string track "dev-channel" "Set the given track to this new branch"
|
||||
DEFINE_string sdk_version "${COREOS_VERSION_ID}" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user