Make WordPress Core

Changeset 53736


Ignore:
Timestamp:
07/20/2022 06:39:16 PM (2 years ago)
Author:
desrosj
Message:

Build/Test Tools: Make the GitHub Action pattern matching for tags more specific.

This improves the tag pattern matching for GitHub Action workflows to be more specific. The * wildcard in the current patterns matches any character except slash (/). While this correctly matches a version like X.Y.Z, it could also match non-numeric characters.

This changes patterns to use the + character, which matches one or more of the preceding characters ([0-9] in this case).

See #55652.

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

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r53592 r53736  
    1010      - '[4-9].[0-9]'
    1111    tags:
    12       - '3.[89]*'
    13       - '[4-9].[0-9]*'
     12      - '[0-9]+.[0-9]'
     13      - '[0-9]+.[0-9].[0-9]+'
     14      - '!3.7.[0-9]+'
    1415  pull_request:
    1516    branches:
  • trunk/.github/workflows/end-to-end-tests.yml

    r53592 r53736  
    99      - '[6-9].[0-9]'
    1010    tags:
    11       - '5.[3-9]*'
    12       - '[6-9].[0-9]*'
     11      - '[0-9]+.[0-9]'
     12      - '[0-9]+.[0-9].[0-9]+'
     13      - '![34].[0-9].[0-9]+'
     14      - '!5.[0-2].[0-9]+'
    1315  pull_request:
    1416    branches:
  • trunk/.github/workflows/javascript-tests.yml

    r53592 r53736  
    99      - '[4-9].[0-9]'
    1010    tags:
    11       - '3.[89]*'
    12       - '[4-9].[0-9]*'
     11      - '[0-9]+.[0-9]'
     12      - '[0-9]+.[0-9].[0-9]+'
     13      - '!3.7.[0-9]+'
    1314  pull_request:
    1415    branches:
  • trunk/.github/workflows/php-compatibility.yml

    r53582 r53736  
    99      - '[6-9].[0-9]'
    1010    tags:
    11       - '5.[5-9]*'
    12       - '[6-9].[0-9]*'
     11      - '[0-9]+.[0-9]'
     12      - '[0-9]+.[0-9].[0-9]+'
     13      - '![34].[0-9].[0-9]+'
     14      - '!5.[0-4].[0-9]+'
    1315  pull_request:
    1416    branches:
  • trunk/.github/workflows/phpunit-tests.yml

    r53592 r53736  
    88      - '[4-9].[0-9]'
    99    tags:
    10       - '3.[7-9]*'
    11       - '[4-9].[0-9]*'
     10      - '[0-9]+.[0-9]'
     11      - '[0-9]+.[0-9].[0-9]+'
    1212  pull_request:
    1313    branches:
Note: See TracChangeset for help on using the changeset viewer.