From 9192dfcc367e740d70a68ce074d88ed5f02843c4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Paris?= <rene.paris@in-tech.com>
Date: Mon, 16 Dec 2024 08:48:35 +0000
Subject: [PATCH] fix(CI): let version check ignore 'v' prefix

Closes #290
---
 utils/ci/scripts/89_check_version.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/ci/scripts/89_check_version.sh b/utils/ci/scripts/89_check_version.sh
index 8c923258a..ade66ac31 100755
--- a/utils/ci/scripts/89_check_version.sh
+++ b/utils/ci/scripts/89_check_version.sh
@@ -39,8 +39,8 @@ if [[ $exit_status -ne 0 ]]; then
   exit 1
 fi
 
-# Check if the output is exactly the tag name
-if [[ "$version_output" == *"${TAG_NAME}" ]]; then
+# Check if the output is exactly the tag name (ignoring 'v' prefix)
+if [[ "${version_output#v}" == "${TAG_NAME#v}" ]]; then
     echo "Version is correctly set: $version_output"
 else
     echo "Version is falsely set: $version_output"
-- 
GitLab