Make WordPress Core


Ignore:
Timestamp:
03/25/2025 01:00:57 PM (15 months ago)
Author:
desrosj
Message:

Build/Test Tools: Prevent Dependabot workflow runs in other mirrors.

Currently, workflows are configured to only run for wordpress-develop or when pull requests are opened where forks and mirrors are the base repository.

Because a Dependabot configuration is present in the repository, it cannot be turned off for mirrors. This results in workflows running for all Dependabot PRs, which is problematic for private mirrors and needlessly consumes minutes and resources.

Props swissspidy, johnbillion.
See #62221.

File:
1 edited

Legend:

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

    r59720 r60080  
    4848      contents: read
    4949    secrets: inherit
    50     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     50    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    5151    with:
    5252      wp-version: ${{ inputs.wp-version }}
     
    6464      contents: read
    6565    runs-on: ${{ matrix.os }}
    66     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     66    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    6767    timeout-minutes: 10
    6868    needs: [ build-test-matrix ]
Note: See TracChangeset for help on using the changeset viewer.