From 7c56269ec4b3ad3567108c63e3ee8443b77e045e Mon Sep 17 00:00:00 2001 From: Vacha Shah Date: Thu, 12 Oct 2023 23:43:11 +0000 Subject: [PATCH] Changes Signed-off-by: Vacha Shah --- .github/workflows/increment-version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/increment-version.yml b/.github/workflows/increment-version.yml index e7c103dffb..a87076c856 100644 --- a/.github/workflows/increment-version.yml +++ b/.github/workflows/increment-version.yml @@ -23,7 +23,7 @@ jobs: - name: Fetch Tag and Version Information run: | TAG=$(echo "${GITHUB_REF#refs/*/}") - CURRENT_VERSION_ARRAY=($(echo "$TAG" | tr . '\n')) + CURRENT_VERSION_ARRAY=($(echo "${TAG//v}" | tr . '\n')) CURRENT_VERSION_ARRAY[0]=$((CURRENT_VERSION_ARRAY[0]//v)) BASE_X=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:1}.x") CURRENT_VERSION=$(IFS=. ; echo "${CURRENT_VERSION_ARRAY[*]:0:3}")