File tree Expand file tree Collapse file tree 1 file changed +6
-21
lines changed
Expand file tree Collapse file tree 1 file changed +6
-21
lines changed Original file line number Diff line number Diff line change 11name : release-preview
22
33on :
4- pull_request_review :
5- types : [submitted]
4+ pull_request :
5+ push :
6+ branches :
7+ - ' **'
8+ tags :
9+ - ' !**'
610 workflow_dispatch :
711
812jobs :
9- check :
10- # Trigger the permissions check whenever someone approves a pull request.
11- # They must have the write permissions to the repo in order to
12- # trigger preview package publishing.
13- if : github.event_name == 'workflow_dispatch' || github.event.review.state == 'approved'
14- runs-on : ubuntu-latest
15- outputs :
16- has-permissions : ${{ steps.checkPermissions.outputs.require-result }}
17- steps :
18- - name : Check permissions
19- id : checkPermissions
20- uses : actions-cool/check-user-permission@v2
21- with :
22- require : ' write'
23-
2413 publish :
25- # The approving user must pass the permissions check
26- # to trigger the preview publish.
27- needs : check
28- if : github.event_name == 'workflow_dispatch' || needs.check.outputs.has-permissions == 'true'
2914 runs-on : macos-latest
3015 steps :
3116 - name : Checkout
You can’t perform that action at this time.
0 commit comments