From 04eecfe685ea732deedc981bc738e699531b38ea Mon Sep 17 00:00:00 2001 From: Matt Edwards Date: Fri, 21 Jun 2024 14:18:17 -0400 Subject: [PATCH] try different string compare --- .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 2f607b8d..5debdba4 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 != '${{ github.event.inputs.is_prerelease }}' + if: ${{ env.ALLOW_PRERELEASE == 'true' && github.event.inputs.is_prerelease == 'false' || github.ref == 'refs/heads/main'}} run: | echo "Prereleases should not be triggered on the main branch, please use development or hotfix" exit 1