This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Commit 0a8b690
committed
release.yml: improve tag pattern matching
Improve the tag pattern matching to only match the exact tag patterns we
want to release. Previously, the glob-style pattern would match a tag like
"v1a.2bc-d.3ef.4" due to the use of the '*' wildcard. However, GitHub
Actions has the regex-like '+' available to match one or more of the
preceding character set [1], so we can more restrictively match
'v<number>.<number>.<number>' with '[0-9]+' representing '<number>'.
To make the tag match slightly more flexible, add a pattern for
'v<number>.<number>.<number>-<string>' (e.g. for "-rc" versions).
[1] https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
Signed-off-by: Victoria Dye <[email protected]>1 parent 4a46973 commit 0a8b690
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
0 commit comments