ci: prevent release creation on null input
This commit is contained in:
parent
d5e36d628c
commit
ab968b25ad
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue