From b1cc893eddb558693a88cdd246b1edc01e2156d5 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Thu, 27 Jun 2024 14:50:39 +0200 Subject: [PATCH] fix: release ci --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 585ce98c..705fe7b4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,15 +30,12 @@ jobs: - name: Check if Release Exists id: check_release run: | - if gh release view ${{ github.ref }}; then - echo "Release already exists" - exit 0 - fi + gh release view ${{ github.ref }} || echo "release_not_found=true" >> $GITHUB_ENV env: GITHUB_TOKEN: ${{ secrets.PAT }} - name: Create Release - if: steps.check_release.outputs.release_exists == 'false' + if: env.release_not_found == 'true' id: create_release uses: actions/create-release@v1 env: