From 45430eb07e0dbfbd957f2ce728603afb6e5b4100 Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Sun, 4 Jul 2021 21:11:38 +0900 Subject: [PATCH] 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 --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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