From b466cf08c66428b1a34a1adb3decc5a3c7e29ea1 Mon Sep 17 00:00:00 2001 From: Matt Edwards Date: Fri, 9 Aug 2024 15:56:27 -0400 Subject: [PATCH] Update create-release.yml --- .github/workflows/create-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index d18edb4..638f74c 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Check For Valid Prerelease - if: ${{ env.ALLOW_PRERELEASE == 'true' && github.event.inputs.is_prerelease == 'false' || github.ref == 'refs/heads/main'}} + if: ${{ ( env.ALLOW_PRERELEASE == 'true' && github.event.inputs.is_prerelease == 'false' ) || ( github.ref == 'refs/heads/main' && github.event.inputs.is_prerelease == 'true' ) }} run: | echo "Prereleases should not be triggered on the main branch, please use development or hotfix" exit 1