mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-28 17:24:33 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53736 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
5
.github/workflows/javascript-tests.yml
vendored
5
.github/workflows/javascript-tests.yml
vendored
@@ -8,8 +8,9 @@ on:
|
||||
- '3.[89]'
|
||||
- '[4-9].[0-9]'
|
||||
tags:
|
||||
- '3.[89]*'
|
||||
- '[4-9].[0-9]*'
|
||||
- '[0-9]+.[0-9]'
|
||||
- '[0-9]+.[0-9].[0-9]+'
|
||||
- '!3.7.[0-9]+'
|
||||
pull_request:
|
||||
branches:
|
||||
- trunk
|
||||
|
||||
Reference in New Issue
Block a user