From 396e44ce299881d133414218da2e41604e2e3b7e Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Mon, 15 Aug 2022 09:35:21 -0300 Subject: [PATCH] ci: fix relup base vsns to account for future 4.5.X versions --- scripts/relup-base-vsns.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/relup-base-vsns.sh b/scripts/relup-base-vsns.sh index 6b35fb196..8919f9cdf 100755 --- a/scripts/relup-base-vsns.sh +++ b/scripts/relup-base-vsns.sh @@ -62,13 +62,6 @@ esac TAGS=( '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 # shellcheck disable=SC2207 semver=($(parse_semver "$git_tag")) @@ -96,6 +89,13 @@ for tag_to_del in "${TAGS_EXCLUDE[@]}"; do TAGS=( "${TAGS[@]/$tag_to_del}" ) 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 if [ "$tag" != '' ]; then echo "$tag"