Make WordPress Core


Ignore:
Timestamp:
03/25/2025 01:00:57 PM (18 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/phpunit-tests.yml

    r59725 r60080  
    6060      contents: read
    6161    secrets: inherit
    62     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     62    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    6363    strategy:
    6464      fail-fast: false
     
    131131      contents: read
    132132    secrets: inherit
    133     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     133    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    134134    strategy:
    135135      fail-fast: false
     
    181181      contents: read
    182182    secrets: inherit
    183     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     183    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    184184    strategy:
    185185      fail-fast: false
     
    224224      contents: read
    225225    secrets: inherit
    226     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
     226    if: ${{ github.repository == 'WordPress/wordpress-develop' || ( github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' ) }}
    227227    strategy:
    228228      fail-fast: false
Note: See TracChangeset for help on using the changeset viewer.