Skip to content

Commit d7f45c8

Browse files
Make release increment optional
1 parent 0a578a5 commit d7f45c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
inputs:
55
increment:
66
description: "Release increment (e.g. patch, minor, major)"
7+
required: false
8+
default: ""
79
type: choice
810
options:
911
- patch
@@ -35,7 +37,7 @@ jobs:
3537
- name: Release package
3638
run: |
3739
ARGS=""
38-
if [[ -n "${{ github.event.inputs.increment }}" ]]; then
40+
if [[ "${{ github.event.inputs.increment }}" != "" ]]; then
3941
ARGS+="${{ github.event.inputs.increment }}"
4042
fi
4143
if [[ -n "${{ github.event.inputs.prerelease }}" ]]; then

0 commit comments

Comments
 (0)