Make WordPress Core

Changeset 59507


Ignore:
Timestamp:
12/13/2024 02:57:56 PM (2 months ago)
Author:
desrosj
Message:

Build/Test Tools: Remove repository specific logic from callable workflows.

Because reusable workflows could be called from any other repository in a variety of contexts, repository specific if conditions should not be present.

Instead, this logic should be included in the calling workflows only.

Props johnbillion.
See #62221.

Location:
trunk/.github/workflows
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/performance.yml

    r59170 r59507  
    3737    permissions:
    3838      contents: read
    39     if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
     39    if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) }}
    4040    strategy:
    4141      fail-fast: false
  • trunk/.github/workflows/reusable-performance.yml

    r59354 r59507  
    103103    permissions:
    104104      contents: read
    105     if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
     105    if: ${{ ! contains( github.event.before, '00000000' ) }}
    106106
    107107    steps:
  • trunk/.github/workflows/reusable-phpunit-tests-v3.yml

    r59484 r59507  
    227227
    228228      - name: Checkout the WordPress Test Reporter
    229         if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
     229        if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}
    230230        uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
    231231        with:
     
    235235
    236236      - name: Submit test results to the WordPress.org host test results
    237         if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
     237        if: ${{ github.ref == 'refs/heads/trunk' && inputs.report }}
    238238        env:
    239239          WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}"
  • trunk/.github/workflows/reusable-support-json-reader-v1.yml

    r59491 r59507  
    3838    name: Determine major WordPress version
    3939    runs-on: ubuntu-latest
    40     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    4140    timeout-minutes: 5
    4241    outputs:
     
    7069    name: Determine PHP versions
    7170    runs-on: ubuntu-latest
    72     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    7371    needs: [ major-wp-version ]
    7472    timeout-minutes: 5
     
    103101    name: Determine MySQL versions
    104102    runs-on: ubuntu-latest
    105     if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    106103    needs: [ major-wp-version ]
    107104    timeout-minutes: 5
Note: See TracChangeset for help on using the changeset viewer.