Skip to content

Commit

Permalink
chore(release): add version-check to create and push git tag step
Browse files Browse the repository at this point in the history
so that the step isn't executed in the first place as it appears as the job failed in the case that the tag already exists
  • Loading branch information
evegufy committed Apr 3, 2024
1 parent c459b0c commit 6aa5432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
dockernotice: ./docker/notice-credential-expiry-app.md
outputs:
app-version: ${{ steps.app-version.outputs.current }}
version-check: ${{ steps.version-check.outputs.exists }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -174,3 +175,4 @@ jobs:
run: |
git tag v${{ needs.release-images.outputs.app-version }}
git push origin v${{ needs.release-images.outputs.app-version }}
if: needs.release-images.outputs.version-check == 'false'

0 comments on commit 6aa5432

Please sign in to comment.