File tree 1 file changed +33
-0
lines changed
1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ release :
5
+ branches : [main]
6
+ types : [published]
7
+ workflow_dispatch :
8
+ inputs :
9
+ tag :
10
+ description : ' which tag to update to'
11
+ default : ' v2'
12
+ required : true
13
+ ref :
14
+ description : ' which branch to update the tag on'
15
+ default : ' main'
16
+ required : true
17
+
18
+ jobs :
19
+ re-tag :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - uses : actions/checkout@v3
23
+ with :
24
+ fetch-depth : 0
25
+ ref : ${{ inputs.ref }}
26
+ - name : update tag
27
+ run : |
28
+ git config user.name 'github-actions'
29
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
30
+ git tag --delete ${{ inputs.tag }} || true
31
+ git push --delete origin ${{ inputs.tag }} || true
32
+ git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
33
+ git push origin ${{ inputs.tag }}
You can’t perform that action at this time.
0 commit comments