Skip to content

Commit 7e80f1e

Browse files
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 <blake.pettersson@gmail.com>
1 parent f77cf94 commit 7e80f1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci-build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
3434
id: filter
3535
with:
36+
# Any file which is not under docs/, ui/ or is not a markdown file is counted as a backend file
3637
filters: |
3738
backend:
38-
- '!(ui/**)'
39-
- '!(**/*.md)'
39+
- '!(ui/**|docs/**|**.md|**/*.md)'
4040
frontend:
4141
- 'ui/**'
4242
check-go:

0 commit comments

Comments
 (0)