Skip to content

Commit 2af233b

Browse files
authored
Specify that Actions range filter pattern only applies to alphanumeric characters (#48780)
1 parent 9833d59 commit 2af233b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/actions/using-workflows/workflow-syntax-for-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ You can use special characters in path, branch, and tag filters.
11301130
- `**`: Matches zero or more of any character.
11311131
- `?`: Matches zero or one of the preceding character.
11321132
- `+`: Matches one or more of the preceding character.
1133-
- `[]` Matches one character listed in the brackets or included in ranges. Ranges can only include `a-z`, `A-Z`, and `0-9`. For example, the range`[0-9a-z]` matches any digit or lowercase letter. For example, `[CB]at` matches `Cat` or `Bat` and `[1-2]00` matches `100` and `200`.
1133+
- `[]` Matches one alphanumeric character listed in the brackets or included in ranges. Ranges can only include `a-z`, `A-Z`, and `0-9`. For example, the range`[0-9a-z]` matches any digit or lowercase letter. For example, `[CB]at` matches `Cat` or `Bat` and `[1-2]00` matches `100` and `200`.
11341134
- `!`: At the start of a pattern makes it negate previous positive patterns. It has no special meaning if not the first character.
11351135

11361136
The characters `*`, `[`, and `!` are special characters in YAML. If you start a pattern with `*`, `[`, or `!`, you must enclose the pattern in quotes. Also, if you use a [flow sequence](https://yaml.org/spec/1.2.2/#flow-sequences) with a pattern containing `[` and/or `]`, the pattern must be enclosed in quotes.

0 commit comments

Comments
 (0)