Make WordPress Core


Ignore:
Timestamp:
08/11/2026 08:13:21 PM (11 hours ago)
Author:
desrosj
Message:

Build/Test Tools: Skip pull_request triggered runs in private repos.

This modifies the conditions for GitHub Actions workflow runs so that they do not run within private forks and mirrors for pull_request events when the PR is in draft status.

For situations where this may be desirable, a Draft Workflow Runs label can be added to a draft pull request to force workflows to run.

Props desrosj, jorbin.
See #65848.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-build-processes.yml

    r63167 r63183  
    5252    permissions:
    5353      contents: read
    54     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     54    if: |
     55      github.repository == 'WordPress/wordpress-develop' || (
     56        github.event_name == 'pull_request' && (
     57          ! github.event.repository.private ||
     58          ! github.event.pull_request.draft ||
     59          contains( github.event.pull_request.labels.*.name, 'Draft Workflow Runs' )
     60        )
     61      )
    5562    strategy:
    5663      fail-fast: false
Note: See TracChangeset for help on using the changeset viewer.