File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Release new action version
1
+ name : Release
2
2
on :
3
3
release :
4
- types : [edited ]
4
+ types : [released ]
5
5
workflow_dispatch :
6
6
inputs :
7
7
TAG_NAME :
8
- description : ' Tag name that the major tag will point to'
8
+ description : " Tag name that the major tag will point to"
9
9
required : true
10
10
11
11
env :
12
12
TAG_NAME : ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
13
13
REGISTRY : ghcr.io
14
14
IMAGE_NAME : ${{ github.repository }}
15
15
16
+ permissions :
17
+ contents : write
18
+
16
19
jobs :
17
20
verify_release :
18
21
runs-on : ubuntu-latest
@@ -37,11 +40,13 @@ jobs:
37
40
fi
38
41
- name : Verify image published
39
42
run : docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
43
+
40
44
update_tag :
41
45
needs : verify_release
42
46
name : Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
43
47
environment :
44
- name : releaseNewActionVersion
48
+ # Note: this environment is protected
49
+ name : Release
45
50
runs-on : ubuntu-latest
46
51
outputs :
47
52
major_tag : ${{ steps.update-major-tag.outputs.major-tag }}
You can’t perform that action at this time.
0 commit comments