File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 15
15
default : ' main'
16
16
required : true
17
17
18
+ permissions :
19
+ contents : write
20
+
18
21
jobs :
19
22
re-tag :
20
23
runs-on : ubuntu-latest
@@ -30,14 +33,10 @@ jobs:
30
33
- name : Update tag with parameter
31
34
if : github.event.inputs.tag != ''
32
35
run : |
33
- git tag --delete ${{ inputs.tag }} || true
34
- git push --delete origin ${{ inputs.tag }} || true
35
- git tag -a ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
36
- git push origin ${{ inputs.tag }}
37
- - name : Update tag to v2
36
+ git tag -fa ${{ inputs.tag }} -m 'Retag ${{ inputs.tag }}'
37
+ git push origin ${{ inputs.tag }} --force
38
+ - name : Update rolling tag
38
39
if : github.event.inputs.tag == ''
39
40
run : |
40
- git tag --delete v2 || true
41
- git push --delete origin v2 || true
42
- git tag -a v2 -m 'Retag v2'
43
- git push origin v2
41
+ git tag -fa v2 -m 'Retag v2'
42
+ git push origin v2 --force
You can’t perform that action at this time.
0 commit comments