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}")