Skip to content

Commit 5331262

Browse files
committed
ci: fix filtering out md files in bpf checks
This change fixes the way we are filtering out markdown files when checking for file changes in lint-bpf-checks. Previously, `!**/*.md` matched all files anywhere in the repo, which caused unnecessary runs on PRs with changes that had nothing to do with our bpf code. Signed-off-by: Maciej Kwiek <mkwiek@cisco.com>
1 parent e26318b commit 5331262

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/lint-bpf-checks.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,16 @@ jobs:
4141
base: ${{ github.ref }}
4242
filters: |
4343
bpf-tree:
44-
- 'bpf/**'
45-
- 'images/**'
44+
- '!(**/*.md)bpf/**'
45+
- '!(**/*.md)images/**'
4646
- 'Makefile*'
4747
- 'contrib/scripts/builder.sh'
48-
- '!**/*.md'
4948
5049
coccinelle:
5150
- 'contrib/coccinelle/**'
5251
bpf-tests-runner:
53-
- 'bpf/tests/bpftest/**'
54-
- 'pkg/bpf/**'
55-
- '!**/*.md'
52+
- '!(**/*.md)bpf/tests/bpftest/**'
53+
- '!(**/*.md)pkg/bpf/**'
5654
workflow-description:
5755
- '.github/workflows/lint-bpf-checks.yaml'
5856

0 commit comments

Comments
 (0)