Run tests for all approved PRs (#5275)

This commit is contained in:
Nidhi 2021-06-21 12:20:57 +05:30 committed by GitHub
parent 6358062dd7
commit 3894dbcacf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,13 +27,11 @@ jobs:
build:
# If the build has been triggered manually via workflow_dispatch or via a push to protected branches
# then we don't check for the PR approved state
# Only PR approvals of internally created PRs should trigger this workflow
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request_review' &&
github.event.review.state == 'approved' &&
github.event.pull_request.head.repo.full_name == github.repository)
github.event.review.state == 'approved')
runs-on: ubuntu-latest
defaults:
run: