Make WordPress Core


Ignore:
Timestamp:
02/24/2021 07:34:41 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Limit when GitHub Action workflows run on pull_request.

Different branches have support for different types of testing based on the tooling that was in place at the time each version was branched. The workflows currently in place have patterns configured to match the relevant branches and tags for each workflow, but only for push events.

This copies the patterns for matching supported branches over to the pull_request event to prevent workflows from running for a pull request to a branch that does not support that workflow.

Fixes #52643.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/javascript-tests.yml

    r50387 r50432  
    22
    33on:
     4  # JavaScript testing was introduced in WordPress 3.8.
    45  push:
    56    branches:
    67      - master
    7       # JavaScript testing was introduced in WordPress 3.8.
    88      - '3.[89]'
    99      - '[4-9].[0-9]'
     
    1212      - '[4-9].[0-9]*'
    1313  pull_request:
     14    branches:
     15      - master
     16      - '3.[89]'
     17      - '[4-9].[0-9]'
    1418
    1519jobs:
Note: See TracChangeset for help on using the changeset viewer.