Skip to content

Commit

Permalink
Allow trusted people to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ristomcgehee committed Jan 22, 2024
1 parent f6d2296 commit 6cca6fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/javascript-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ on:
types:
- opened
- labeled
- synchronize


jobs:
test:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'okay-to-test') || (github.event_name == 'push')
if: |
(contains(github.event.pull_request.labels.*.name, 'okay-to-test') && github.event.action == 'labeled') ||
contains(fromJson('["MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) ||
github.event_name == 'push'
steps:
# https://github.com/actions/checkout/issues/518
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ on:
types:
- opened
- labeled
- synchronize

jobs:
test:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'okay-to-test') || (github.event_name == 'push')
if: |
(contains(github.event.pull_request.labels.*.name, 'okay-to-test') && github.event.action == 'labeled') ||
contains(fromJson('["MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association) ||
github.event_name == 'push'
steps:
# https://github.com/actions/checkout/issues/518
Expand Down

0 comments on commit 6cca6fb

Please sign in to comment.