Use filter pattern instead of regex for tags filter in CI workflow (#3802)

since regex is not supported for filtering paths, tags and branches.

- Document: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- Answer by GitHub staff: https://github.community/t/using-regex-for-filtering/16427/2
This commit is contained in:
Linda_pp 2021-07-04 21:11:38 +09:00 committed by GitHub
parent 0d90cb64c6
commit 45430eb07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ on: # yamllint disable-line rule:truthy
push: push:
branches: [ master ] # yamllint disable-line rule:brackets branches: [ master ] # yamllint disable-line rule:brackets
tags: tags:
- /^v\d+\.\d+\.(x|\d+)$/ - v[0-9]+.[0-9]+.x
- v[0-9]+.[0-9]+.[0-9]+
pull_request: pull_request:
branches: [ master ] # yamllint disable-line rule:brackets branches: [ master ] # yamllint disable-line rule:brackets