From bc98f14871696e8d8a4acdf9d36fa2f89ba23d7c Mon Sep 17 00:00:00 2001 From: pandravrc <162582491+pandravrc@users.noreply.github.com> Date: Sun, 1 Sep 2024 13:14:27 +0900 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 411d9df..5cfb92f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,13 +55,17 @@ jobs: tag: ${{ steps.version.outputs.value }} - name: Process Tag Check Result + if: ${{ steps.check_tag.outputs.retval == 'true' }} run: | - if [[ "${{ steps.check_tag.outputs.retval }}" == 'true' ]]; then - echo "Branch/commit already contains the tag." - exit 1 - else - echo "Branch/commit did not contain the tag." - fi + echo "Branch/commit already contains the tag. Exiting." + exit 1 + + - name: Create Tag + if: ${{ steps.check_tag.outputs.retval != 'true' }} + id: tag_version + uses: rickstaa/action-create-tag@88dbf7ff6fe2405f8e8f6c6fdfd78829bc631f83 + with: + tag: "${{ env.version }}" # Configure the Environment Variables needed for releasing the Package