File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 18
18
19
19
jobs :
20
20
check-perms :
21
+ if : ${{ !github.event.pull_request.merged }}
21
22
runs-on : ubuntu-latest
22
23
steps :
23
- -
uses :
agilepathway/[email protected]
24
- id : label_check
25
- with :
26
- any_of : run_ci
27
- repo_token : ${{ secrets.GITHUB_TOKEN }}
28
- allow_failure : true
29
24
- name : Get User Permission
30
25
id : checkAccess
31
26
uses : actions-cool/check-user-permission@v2
35
30
env :
36
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
32
- name : Check User Permission
38
- if : steps.checkAccess.outputs.require-result == 'false' || steps.label_check.outputs.label_check != 'success'
33
+ if : steps.checkAccess.outputs.require-result == 'false'
39
34
run : |
40
35
echo "${{ github.triggering_actor }} does not have permissions on this repo."
41
36
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
49
44
- uses : actions/checkout@v4
50
45
with :
51
46
fetch-depth : 1
52
- ref : ${{ github.event.pull_request.head.sha }}
47
+ ref : ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }}
53
48
- uses : actions/setup-go@v5
54
49
with :
55
50
cache : false
73
68
- uses : actions/checkout@v4
74
69
with :
75
70
fetch-depth : 1
76
- ref : ${{ github.event.pull_request.head.sha }}
71
+ ref : ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || '' }}
77
72
- uses : actions/setup-go@v5
78
73
with :
79
74
cache : false
You can’t perform that action at this time.
0 commit comments