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