From 42dacddef024957382cb65b15c7bb8d376a8aa7e Mon Sep 17 00:00:00 2001 From: Tom Harding Date: Mon, 26 Aug 2024 16:16:50 +0200 Subject: [PATCH] This is not a tagged commit --- .github/workflows/create-version-tag.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create-version-tag.yaml b/.github/workflows/create-version-tag.yaml index 81643945..8425f10d 100644 --- a/.github/workflows/create-version-tag.yaml +++ b/.github/workflows/create-version-tag.yaml @@ -25,7 +25,15 @@ jobs: ) echo "is_tagged_commit=$(($is_tagged_commit))" >> $GITHUB_OUTPUT - - name: Debug - env: - IS_TAGGED_COMMIT: ${{ steps.tag_check.outputs.is_tagged_commit }} - run: echo "TAGGED? $IS_TAGGED_COMMIT" + - name: Create the tag + if: steps.tag_check.outputs.is_tagged_commit == 1 + id: get-version + run: | + new_version=$( \ + echo "${{ github.event.head_commit.message }}" \ + | cut -d " " -f 5" \ + ) + echo "tag_version=v${new_version}" >> $GITHUB_OUTPUT + + - run: echo "${{ steps.get-version.tag_version }}" + if: steps.tag_check.outputs.is_tagged_commit == 1