From 1b55a6d6edcae2a153d704512f6850ef5df8fd49 Mon Sep 17 00:00:00 2001 From: Blake Pettersson Date: Wed, 7 Feb 2024 13:43:50 -1000 Subject: [PATCH] chore(ci): tweak backend filters (#17134) The existing backend filters get triggered even on frontend-only or docs-only changes, which should not be the case. The reason for this seems to be the fact that each filter line is ORed rather than ANDed. To remedy this, we put all the filters on the same line. I tried the filter out in a REPL (https://runkit.com/blakepettersson/65c3daba99653f0008c74eda). This is a filter using picomatch (the same library `dorny/paths-filter` uses). Signed-off-by: Blake Pettersson Signed-off-by: Adrian Aneci --- .github/workflows/ci-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yaml b/.github/workflows/ci-build.yaml index 23d542f6385edb..36859a2e60bc1b 100644 --- a/.github/workflows/ci-build.yaml +++ b/.github/workflows/ci-build.yaml @@ -33,10 +33,10 @@ jobs: - uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2 id: filter with: + # Any file which is not under docs/, ui/ or is not a markdown file is counted as a backend file filters: | backend: - - '!(ui/**)' - - '!(**/*.md)' + - '!(ui/**|docs/**|**.md|**/*.md)' frontend: - 'ui/**' check-go: