File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- pull_request :
8
- branches :
9
- - main
7
+ pull_request_target :
8
+ types : [opened, synchronize]
10
9
11
10
jobs :
11
+ access_check :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Check user permissions
15
+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.author_association != 'MEMBER' }}
16
+ run : |
17
+ echo "Action was not triggered by an organization member. Exiting now."
18
+ exit 1
19
+
12
20
cypress-run :
13
21
runs-on : ubuntu-latest
22
+ needs : access_check
14
23
steps :
15
24
- name : Checkout
16
25
uses : actions/checkout@v4
26
+ with :
27
+ ref : ${{ github.event.pull_request.head.sha }}
17
28
18
29
- name : Cypress run
19
30
uses : cypress-io/github-action@v6
25
36
env :
26
37
NEXT_PUBLIC_HEIMDALL_URL : " ${{ secrets.HEIMDALL_URL }}"
27
38
CYPRESS_HEIMDALL_URL : " ${{ secrets.HEIMDALL_URL }}"
28
-
You can’t perform that action at this time.
0 commit comments