Make WordPress Core

Changeset 59529


Ignore:
Timestamp:
12/17/2024 04:49:52 PM (6 months ago)
Author:
desrosj
Message:

Build/Test Tools: Allow more control when testing older branches.

This adds an input to the Test Old Branches workflow that allows a specific branch to be specified or all to run all old branches.

The default behavior is to only test the currently supported version of WordPress as defined in the CURRENTLY_SUPPORTED_BRANCH environment variable.

Follow up to [59520].

See #62221.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-old-branches.yml

    r59520 r59529  
    1414    - cron: '0 0 15 * *'
    1515  workflow_dispatch:
     16    inputs:
     17      strategy:
     18        description: 'The branches to test. Accepts X.Y branch names, or "all". Defaults to only the currently supported branch.'
     19        required: false
     20        type: string
     21        default: ''
    1622
    1723# Disable permissions for all available scopes by default.
     
    113119      - name: Dispatch workflow run
    114120        uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
    115         if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == env.CURRENTLY_SUPPORTED_BRANCH }}
     121        if: ${{ github.event_name == 'push' || ( github.event_name == 'workflow_dispatch' && matrix.branch == inputs.strategy || inputs.strategy == 'all' ) || github.event.schedule == '0 0 15 * *' || matrix.branch == env.CURRENTLY_SUPPORTED_BRANCH }}
    116122        with:
    117123          retries: 2
Note: See TracChangeset for help on using the changeset viewer.