ci: prevent release creation on null input

This commit is contained in:
Nicolas Giard 2022-03-07 20:26:29 -05:00 committed by GitHub
parent d5e36d628c
commit ab968b25ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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