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