From 84bdbde7efa2b54dffcb79d84d423c51dc9369e7 Mon Sep 17 00:00:00 2001 From: Radu Carpa Date: Mon, 15 Jan 2024 18:18:42 +0100 Subject: [PATCH] Tests: adapt integration test tag selection to semver versioning The code assumed that the major rucio release is in the 'y' spot of a 'x.y.z' version. --- .github/workflows/integration_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index e8fa46b1b6..a566009378 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -64,9 +64,9 @@ jobs: GIT_REF=$(git describe --tags --abbrev=0) IFS=. read major minor micro build <<<"${GIT_REF}" - RELEASE_FAMILY=$major.$minor + RELEASE_FAMILY=$major LATEST_RELEASE_IN_RELEASE_FAMILY=$(git for-each-ref --format '%(refname)' refs/tags/$RELEASE_FAMILY.* | sort -k 1.11V | tail -1 | awk -F'/' '{print $3}') - LATEST_RUCIO_RELEASE_FAMILY=$(git for-each-ref --format '%(refname)' refs/tags | sort -k 1.11V | tail -1 | awk -F'/' '{print $3}' | awk -F'.' '{print $1 "." $2}') + LATEST_RUCIO_RELEASE_FAMILY=$(git for-each-ref --format '%(refname)' refs/tags | sort -k 1.11V | tail -1 | awk -F'/' '{print $3}' | awk -F'.' '{print $1}') echo "Release line for ${BRANCH} is ${RELEASE_FAMILY}" echo "The latest release line for rucio is ${LATEST_RUCIO_RELEASE_FAMILY}"