Skip to content

Commit 3782e44

Browse files
Update run-tests.yml
1 parent 720a27a commit 3782e44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Run tests
22

33
on:
44
pull_request_target:
5-
types: [opened, synchronize, labeled, unlabeled]
5+
types: [opened, synchronize, labeled]
66
schedule:
77
- cron: '0 0 * * *'
88

@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check user permissions
14-
if: ${{ startsWith(github.event_name, 'pull_request') && github.event.pull_request.author_association != 'MEMBER' }}
14+
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test')
1515
run: |
16-
echo "Action was not triggered by an organization member. Exiting now."
16+
echo "Action was not authorized. Exiting now."
1717
exit 1
1818
1919
php-tests:

0 commit comments

Comments
 (0)