File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ' Git - Rename Tag'
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ old_tag :
7+ description : ' Numerical only e.g. 1.0.0'
8+ required : true
9+ type : ' string'
10+ new_tag :
11+ description : ' Numerical only e.g. 1.1.0'
12+ required : true
13+ type : ' string'
14+
15+ permissions :
16+ pull-requests : write
17+ id-token : write # This is required for requesting the JWT
18+ contents : read # This is required for actions/checkout
19+
20+ jobs :
21+ tag_renaming_process :
22+ runs-on : ubuntu-latest
23+
24+ steps :
25+ - name : Get and create new tag
26+ id : init
27+ run : |
28+ git checkout ${{ github.event.inputs.old_tag}}
29+ git tag ${{ github.event.inputs.new_tag}}
30+ git push origin ${{ github.event.inputs.new_tag}}
31+
32+ working-directory : ./
33+ shell : bash
You can’t perform that action at this time.
0 commit comments