Fix forked PR check

PiperOrigin-RevId: 508720169
pull/11915/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 3493da3878
commit 9b7f163431
  1. 4
      .github/workflows/forked_pr_workflow_check.yml

@ -23,5 +23,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: >
${{ github.event.pull_request.head.repo.full_name != 'protocolbuffers/protobuf' }} ||
(echo "This pull request is from an unsafe fork and isn't allowed to modify workflow files!" && exit 1)
${{ github.event.pull_request.head.repo.full_name == 'protocolbuffers/protobuf' }} ||
(echo "This pull request is from an unsafe fork (${{ github.event.pull_request.head.repo.full_name }}) and isn't allowed to modify workflow files!" && exit 1)

Loading…
Cancel
Save