Skip to content

Commit fb9b01a

Browse files
committed
convert release workflow
1 parent 8c6eb59 commit fb9b01a

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
11
name: "Release"
22
on:
3-
release:
4-
types: [published]
3+
workflow_dispatch:
4+
inputs:
5+
major:
6+
description: 'MAJOR semantic severity'
7+
required: true
8+
type: string
9+
minor:
10+
description: 'Minor semantic severity'
11+
required: true
12+
type: string
13+
patch:
14+
description: 'patch semantic severity'
15+
required: true
16+
type: string
517

618
jobs:
719
release:
820
runs-on: ubuntu-latest
921
steps:
1022
- name: Checkout
1123
uses: actions/checkout@v4
12-
- name: Update v4 tags
24+
- name: GitHub Release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
tag: v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }}
28+
allowUpdates: true
29+
generateReleaseNotes: true
30+
- name: Update tags
1331
run: |
14-
git tag -f v4
15-
git tag -f v4.4
32+
git tag -f v${{ inputs.major }}
33+
git tag -f v${{ inputs.major }}.${{ inputs.minor }}
1634
- name: Push changes
1735
uses: ad-m/github-push-action@master
1836
with:

0 commit comments

Comments
 (0)