Skip to content

Commit e232aaf

Browse files
authored
ci: upgraded bump-release workflow (new input format) (#106)
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
1 parent 9f448d5 commit e232aaf

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/bump-release.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,15 @@ permissions:
66
on:
77
workflow_dispatch:
88
inputs:
9-
bump-patch:
10-
description: Bump a patch version release
11-
type: boolean
9+
bump-type:
10+
description: Type of bump (patch, minor, major)
11+
type: choice
12+
options:
13+
- patch
14+
- minor
15+
- major
16+
default: patch
1217
required: false
13-
default: true
14-
bump-minor:
15-
description: Bump a minor version release
16-
type: boolean
17-
required: false
18-
default: false
19-
bump-major:
20-
description: Bump a major version release
21-
type: boolean
22-
required: false
23-
default: false
2418
tag-message-title:
2519
description: Tag message title to prepend to the release notes
2620
required: false
@@ -38,9 +32,7 @@ jobs:
3832
contents: write
3933
uses: go-openapi/ci-workflows/.github/workflows/bump-release.yml@84f8f9c0759d5d1d0c32b18a7abaa0cba65ebcff # v0.2.9
4034
with:
41-
bump-patch: ${{ inputs.bump-patch }}
42-
bump-minor: ${{ inputs.bump-minor }}
43-
bump-major: ${{ inputs.bump-major }}
35+
bump-type: ${{ inputs.bump-type }}
4436
tag-message-title: ${{ inputs.tag-message-title }}
4537
tag-message-body: ${{ inputs.tag-message-body }}
4638
secrets: inherit

0 commit comments

Comments
 (0)