ci: fix relup base vsns to account for future 4.5.X versions

This commit is contained in:
Thales Macedo Garitezi 2022-08-15 09:35:21 -03:00
parent 71bb0436e6
commit 396e44ce29
1 changed files with 7 additions and 7 deletions

View File

@ -62,13 +62,6 @@ esac
TAGS=( 'dummy' ) TAGS=( 'dummy' )
TAGS_EXCLUDE=( 'dummy' ) TAGS_EXCLUDE=( 'dummy' )
# first 4.5.0 version uses the previous 4.4.X as a base
# we emulate that we are the last 4.4.X version.
if [[ "${CUR_SEMVER[0]}" = 4 && "${CUR_SEMVER[1]}" = 5 && "${CUR_SEMVER[2]}" = 0 ]]; then
CUR_SEMVER[1]=4
CUR_SEMVER[2]=9999
fi
while read -r git_tag; do while read -r git_tag; do
# shellcheck disable=SC2207 # shellcheck disable=SC2207
semver=($(parse_semver "$git_tag")) semver=($(parse_semver "$git_tag"))
@ -96,6 +89,13 @@ for tag_to_del in "${TAGS_EXCLUDE[@]}"; do
TAGS=( "${TAGS[@]/$tag_to_del}" ) TAGS=( "${TAGS[@]/$tag_to_del}" )
done done
# first 4.5.0 version uses the previous 4.4.X as a base we emulate
# that we are the last 4.4.X version that allows upgrading to 4.4.5.
if [[ "${CUR_SEMVER[0]}" = 4 && "${CUR_SEMVER[1]}" = 5 && "${CUR_SEMVER[2]}" = 0 ]]; then
TAGS+=( "v4.4.8" )
TAGS+=( "e4.4.8" )
fi
for tag in "${TAGS[@]}"; do for tag in "${TAGS[@]}"; do
if [ "$tag" != '' ]; then if [ "$tag" != '' ]; then
echo "$tag" echo "$tag"