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 1
1
name : release-preview
2
2
3
3
on :
4
- pull_request_review :
5
- types : [submitted]
4
+ pull_request :
5
+ push :
6
+ branches :
7
+ - ' **'
8
+ tags :
9
+ - ' !**'
6
10
workflow_dispatch :
7
11
8
12
jobs :
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
-
24
13
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'
29
14
runs-on : macos-latest
30
15
steps :
31
16
- name : Checkout
You can’t perform that action at this time.
0 commit comments