Skip to content

Commit

Permalink
added the tag exists comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Sep 29, 2023
1 parent ede4ebb commit 1af5481
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ jobs:
permissions:
contents: write
outputs:
tagcreated: ${{ steps.autotag.outputs.tagcreated }}
tagname: ${{ steps.autotag.outputs.tagname }}
tagExists: ${{ steps.checkTag.outputs.exists }}
steps:
- uses: mukunku/[email protected]
id: checkTag
with:
tag: v${{ needs.test-versions.outputs.version }}
- run: echo ${{ steps.checkTag.outputs.exists }}
- uses: actions/[email protected]
- name: Tag version and create release
if: steps.checkTag.outputs.exists == 'false'
Expand All @@ -78,7 +76,7 @@ jobs:
permissions:
packages: write
needs: [tag, test-versions]
if: needs.test-versions.outputs.version != ''
if: needs.tag.outputs.tagExists == 'false'
steps:
- uses: actions/checkout@v3
- name: Build image
Expand Down

0 comments on commit 1af5481

Please sign in to comment.