Make WordPress Core


Ignore:
Timestamp:
03/25/2025 01:00:57 PM (14 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/test-and-zip-default-themes.yml

    r60051 r60080  
    6464      contents: read
    6565    timeout-minutes: 10
    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    strategy:
    6868      fail-fast: false
     
    114114      contents: read
    115115    timeout-minutes: 10
    116     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     116    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    117117    strategy:
    118118      fail-fast: false
Note: See TracChangeset for help on using the changeset viewer.