File tree 1 file changed +12
-1
lines changed
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 6
6
paths-ignore :
7
7
- README.md
8
8
pull_request_target :
9
+ types :
10
+ - opened
11
+ - synchronize
12
+ - reopened
13
+ - labeled
9
14
branches :
10
15
- main
11
16
paths-ignore :
15
20
check-perms :
16
21
runs-on : ubuntu-latest
17
22
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
18
29
- name : Get User Permission
19
30
id : checkAccess
20
31
uses : actions-cool/check-user-permission@v2
24
35
env :
25
36
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
37
- name : Check User Permission
27
- if : steps.checkAccess.outputs.require-result == 'false'
38
+ if : steps.checkAccess.outputs.require-result == 'false' || steps.label_check.outputs.label_check != 'success'
28
39
run : |
29
40
echo "${{ github.triggering_actor }} does not have permissions on this repo."
30
41
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
You can’t perform that action at this time.
0 commit comments