From ab968b25adb1724152d165fd052a965834ee9a6c Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Mon, 7 Mar 2022 20:26:29 -0500 Subject: [PATCH] ci: prevent release creation on null input --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecf122aaf..4ec7c1962 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: fetch-depth: 0 - name: Get Next Version - if: ${{ github.event.inputs.publish }} + if: ${{ github.event.inputs.publish == 'true' }} id: semver uses: ietf-tools/semver-action@v1 with: @@ -30,7 +30,7 @@ jobs: branch: main - name: Set Next Version Env Var - if: ${{ github.event.inputs.publish }} + if: ${{ github.event.inputs.publish == 'true' }} env: NEXT_VERSION: ${{ steps.semver.outputs.next }} run: | @@ -38,7 +38,7 @@ jobs: - name: Create Draft Release uses: ncipollo/release-action@v1 - if: ${{ github.event.inputs.publish }} + if: ${{ github.event.inputs.publish == 'true' }} with: prerelease: true draft: false