From 3701aadbb55419f47a94f9f8b6e14d34afd4706c Mon Sep 17 00:00:00 2001 From: Zack Krida Date: Tue, 12 Jul 2022 11:34:28 -0400 Subject: [PATCH] Update pr_closed.yml Fixes #692, I think! --- .github/workflows/pr_closed.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pr_closed.yml b/.github/workflows/pr_closed.yml index c53f16a30..01c8a057b 100644 --- a/.github/workflows/pr_closed.yml +++ b/.github/workflows/pr_closed.yml @@ -10,8 +10,7 @@ jobs: name: Clean API developer docs preview runs-on: ubuntu-latest # Check if the event is not triggered by a fork or dependabot - if: github.event_name == 'pull_request' && github.repository_owner == 'WordPress' && github.actor != 'dependabot[bot]' - + if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login == 'WordPress' && github.actor != 'dependabot[bot]' steps: - uses: actions/checkout@v3 with: