From 0a23f731c6b02a11d39f49c1d531d79af6955cfb Mon Sep 17 00:00:00 2001 From: David Geary Date: Thu, 15 Aug 2024 13:53:51 +0100 Subject: [PATCH] Fix if statement #2 --- .github/workflows/create-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 8582820..cfbcd56 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -83,7 +83,7 @@ jobs: - name: Create draft Github pre-release for ${{ steps.get-version.outputs.version }} (${{ env.IS_PRERELEASE }}) # TODO: replace with ${{ env.IS_PRERELEASE }} # if: (startsWith(github.ref, 'refs/tags/build#') && contains(github.ref, '-')) || !startsWith(github.ref, 'refs/tags/build#') - if: ${{ env.IS_PRERELEASE }} + if: env.IS_PRERELEASE uses: softprops/action-gh-release@v2 with: name: ${{ steps.get-version.outputs.version }} @@ -94,7 +94,7 @@ jobs: - name: Create draft Github release for ${{ steps.get-version.outputs.version }} (!${{ env.IS_PRERELEASE }}) # TODO: replace with !${{ env.IS_PRERELEASE }} # if: startsWith(github.ref, 'refs/tags/build#') && !contains(github.ref, '-') - if: ${{ !env.IS_PRERELEASE }} + if: ${{ ! env.IS_PRERELEASE }} uses: softprops/action-gh-release@v2 with: name: ${{ steps.get-version.outputs.version }}