From 6a3e72d196fd7a9da8f558af8f17e9d36399df17 Mon Sep 17 00:00:00 2001 From: Hauwa Muhammad Date: Fri, 8 Nov 2024 14:07:14 +0000 Subject: [PATCH] Update tag parsing to correctly extract release number --- .github/workflows/post-merge-tests-and-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/post-merge-tests-and-tag.yml b/.github/workflows/post-merge-tests-and-tag.yml index fce44b5..bf3ddef 100644 --- a/.github/workflows/post-merge-tests-and-tag.yml +++ b/.github/workflows/post-merge-tests-and-tag.yml @@ -25,7 +25,7 @@ jobs: - name: Tag release run: | - LATEST_RELEASE_NUMBER=$(git describe --abbrev=0 --tags --match "pre_release_*" | awk -F- '{print $2}' || echo "0") + LATEST_RELEASE_NUMBER=$(git describe --abbrev=0 --tags --match "pre_release_*" | awk -F'_' '{print $3}' || echo "0") NEW_RELEASE_NUMBER=$((LATEST_RELEASE_NUMBER + 1)) TAG_NAME=pre_release_${NEW_RELEASE_NUMBER} echo "TAG_NAME: ${TAG_NAME}"