diff options
author | Linda_pp <rhysd@users.noreply.github.com> | 2021-07-04 21:11:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 21:11:38 +0900 |
commit | 45430eb07e0dbfbd957f2ce728603afb6e5b4100 (patch) | |
tree | dc1248f140f886f9482f7bfa652b09b7a015698f /.github/workflows/main.yml | |
parent | 0d90cb64c6d14177f6915649243d272e1308dfaf (diff) | |
download | ale-45430eb07e0dbfbd957f2ce728603afb6e5b4100.zip |
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
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r-- | .github/workflows/main.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42add447..a06f0482 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,8 @@ on: # yamllint disable-line rule:truthy push: branches: [ master ] # yamllint disable-line rule:brackets tags: - - /^v\d+\.\d+\.(x|\d+)$/ + - v[0-9]+.[0-9]+.x + - v[0-9]+.[0-9]+.[0-9]+ pull_request: branches: [ master ] # yamllint disable-line rule:brackets |