Make WordPress Core


Ignore:
Timestamp:
12/13/2024 02:57:56 PM (12 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 }}"
Note: See TracChangeset for help on using the changeset viewer.