From 2d8ba7b566f35aeae5a264bd7185b9338af5e1ea Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 2 Apr 2021 16:20:24 +0000 Subject: [PATCH] Build/Test Tools: Prevent the workflow for testing old branches from running on forks. This adds a conditional statement to ensure the workflow that tests old branches only runs on the official `wordpress-develop` mirror. This prevents it from running on forks and private mirrors. See #52653. git-svn-id: https://develop.svn.wordpress.org/trunk@50648 602fd350-edb4-49c9-b593-d223f7449a82 --- .github/workflows/test-old-branches.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test-old-branches.yml b/.github/workflows/test-old-branches.yml index 76aef76dfd..31b706d740 100644 --- a/.github/workflows/test-old-branches.yml +++ b/.github/workflows/test-old-branches.yml @@ -9,6 +9,7 @@ jobs: dispatch-workflows-for-old-branches: name: ${{ matrix.workflow }} for ${{ matrix.branch }} runs-on: ubuntu-latest + if: ${{ github.repository == 'WordPress/wordpress-develop' }} strategy: fail-fast: false matrix: