File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed
Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 11name : " Release"
22on :
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
618jobs :
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 :
You can’t perform that action at this time.
0 commit comments