Don't run tests on push in forked repositories

PiperOrigin-RevId: 507546491
pull/11822/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 4bf33da229
commit 8282ddf13c
  1. 3
      .github/workflows/test_runner.yml

@ -57,7 +57,8 @@ jobs:
# repository, it's safe and we can use `pull_request`. Otherwise, we should
# use `pull_request_target`.
if: |
github.event_name == 'push' ||
(github.event_name == 'push' &&
github.event.repository.full_name == 'protocolbuffers/protobuf') ||
(github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == 'protocolbuffers/protobuf') ||
(github.event_name == 'pull_request_target' &&

Loading…
Cancel
Save