File tree 1 file changed +36
-0
lines changed
1 file changed +36
-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, tag or SHA to update the tag on'
15
+ default : ' main'
16
+ required : true
17
+
18
+ permissions :
19
+ contents : read
20
+
21
+ jobs :
22
+ re-tag :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ with :
27
+ fetch-depth : 0
28
+ ref : ${{ inputs.ref }}
29
+ - name : update tag
30
+ run : |
31
+ git config user.name 'github-actions'
32
+ git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
33
+ git tag --delete ${{ inputs.tag }} || true
34
+ git push --delete origin ${{ inputs.tag }} || true
35
+ git tag -a latest -m 'Retag ${{ inputs.tag }}'
36
+ git push origin ${{ inputs.tag }}
You can’t perform that action at this time.
0 commit comments