From 43e188c52ac72f35a0f51dae458fbe24963f605a Mon Sep 17 00:00:00 2001 From: josvaz Date: Wed, 3 Jan 2024 11:54:50 +0100 Subject: [PATCH] CLOUDP-218697: Fix get latest tag (#299) * CLOUDP-218697: Fix get latest tag Signed-off-by: Jose Vazquez * Update .github/actions/releaser/cr.sh Co-authored-by: Sergiusz Urbaniak --------- Signed-off-by: Jose Vazquez Co-authored-by: Sergiusz Urbaniak --- .github/actions/releaser/cr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/releaser/cr.sh b/.github/actions/releaser/cr.sh index e9e93ea7..a9ab1db2 100755 --- a/.github/actions/releaser/cr.sh +++ b/.github/actions/releaser/cr.sh @@ -156,7 +156,7 @@ get_latest_tag(){ local name=$1 git fetch --tags > /dev/null 2>&1 - git describe --tags --abbrev=0 --match="$name-[0-9.]*" "$(git rev-list --tags --max-count=1)" + git tag -l --sort=-refname |grep "^$name-[0-9]*\." | head -1 } release_changed_charts() {