From 6aa5432e24ff4fec1b8d6fa2f654b487ce1689ff Mon Sep 17 00:00:00 2001 From: Evelyn Gurschler Date: Wed, 3 Apr 2024 15:09:39 +0200 Subject: [PATCH] chore(release): add version-check to create and push git tag step 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 --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 283aaba0..560168d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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'