File tree Expand file tree Collapse file tree 5 files changed +11154
-10412
lines changed
Expand file tree Collapse file tree 5 files changed +11154
-10412
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- - ' releases/*'
87
98permissions :
109 contents : read
Original file line number Diff line number Diff line change 1+ name : Update Latest Release Tag
2+ run-name : Update ${{ github.event.inputs.major_version_tag }} with ${{ github.event.inputs.source_tag }}
3+
4+ on :
5+ workflow_dispatch :
6+ inputs :
7+ source_tag :
8+ description : ' The tag or reference to use as the source (example: v8.0.0)'
9+ required : true
10+ default : vX.X.X
11+ major_version_tag :
12+ description : ' The major release tag to update with the source (example: v8)'
13+ required : true
14+ default : vX
15+
16+ permissions :
17+ contents : write
18+
19+ jobs :
20+ tag :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+
27+ - name : git config
28+ run : |
29+ git config user.name github-actions
30+ git config user.email github-actions@github.com
31+
32+ - name : tag new target
33+ run : git tag -f ${{ github.event.inputs.major_version_tag }} ${{ github.event.inputs.source_tag }}
34+
35+ - name : push new tag
36+ run : git push origin ${{ github.event.inputs.major_version_tag }} --force
You can’t perform that action at this time.
0 commit comments