Skip to content

Commit 3e109b1

Browse files
committedMay 2, 2022
👷 Make user choose the part of the version to update in a dropdown list during release (#57)
1 parent 1a90716 commit 3e109b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed
 

‎.github/workflows/prepare-release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@ on:
55
inputs:
66
version_part:
77
description: The part of the version to update (patch, minor or major)
8-
required: true
8+
type: choice
9+
options:
10+
- patch
11+
- minor
12+
- major
913
default: 'minor'
14+
required: true
1015

1116
jobs:
1217
prepare-release:
@@ -25,7 +30,6 @@ jobs:
2530
- name: Validate inputs
2631
run: |
2732
echo "INPUT_VERSION_PART: ${{ github.event.inputs.version_part }}"
28-
python -c "if '${{ github.event.inputs.version_part }}' not in ['patch', 'minor', 'major']: raise ValueError(\"'${{ github.event.inputs.version_part }}' must be one of ['patch', 'minor', 'major'])\")"
2933
- name: Bump the version number # bump2version is a maintained fork of original bumpversion
3034
id: bump_version
3135
run: |

0 commit comments

Comments
 (0)
Please sign in to comment.