File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 1- name : Release new action version
1+ name : Release
22on :
33 release :
4- types : [edited ]
4+ types : [released ]
55 workflow_dispatch :
66 inputs :
77 TAG_NAME :
8- description : ' Tag name that the major tag will point to'
8+ description : " Tag name that the major tag will point to"
99 required : true
1010
1111env :
1212 TAG_NAME : ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
13+
1314permissions :
1415 contents : write
1516
1617jobs :
1718 update_tag :
1819 name : Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
19- environment :
20- name : releaseNewActionVersion
2120 runs-on : ubuntu-latest
21+ environment :
22+ # Note: this environment is protected
23+ name : Release
2224 steps :
23- - name : Update the ${{ env.TAG_NAME }} tag
24- id : update-major-tag
25- uses : actions/publish-action@v0.1.0
26- with :
27- source-tag : ${{ env.TAG_NAME }}
28- slack-webhook : ${{ secrets.SLACK_WEBHOOK }}
25+ - name : Update the ${{ env.TAG_NAME }} tag
26+ id : update-major-tag
27+ uses : actions/publish-action@v0.1.0
28+ with :
29+ source-tag : ${{ env.TAG_NAME }}
30+ slack-webhook : ${{ secrets.SLACK_WEBHOOK }}
You can’t perform that action at this time.
0 commit comments