Make WordPress Core

Changeset 59167


Ignore:
Timestamp:
10/04/2024 01:22:38 PM (16 months ago)
Author:
desrosj
Message:

Build/Test Tools: Limit when install testing runs.

In most cases, running the installation testing workflow in forked repositories is unnecessary and wasteful. This adds conditions to that workflow to prevent the tests from running on forks unless a pull request is being made back to that fork.

This pattern is already used across other workflows.

Props jrf.
See #61564.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/install-testing.yml

    r58789 r59167  
    4747    name: Determine PHP Versions to test
    4848    runs-on: ubuntu-latest
     49    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    4950    timeout-minutes: 5
    5051    outputs:
     
    105106      contents: read
    106107    runs-on: ${{ matrix.os }}
     108    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    107109    timeout-minutes: 10
    108110    needs: [ build-matrix ]
Note: See TracChangeset for help on using the changeset viewer.