From f180dc4515f75c2e97d43530861ec93edfebd708 Mon Sep 17 00:00:00 2001 From: Simon Heimberg Date: Mon, 25 Aug 2025 12:30:16 +0200 Subject: [PATCH] example how to exclude paths in README.md Add another example how to exclude paths. Found out by reading doc of picomatch and trying. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b5e0f4c..9c422ec 100644 --- a/README.md +++ b/README.md @@ -482,6 +482,19 @@ jobs:
Detect changes in folder only for some file extensions +```yaml +- uses: dorny/paths-filter@v3 + id: filter + with: + # include the files not (!) matching the listed extensions (list separated by |, grouped by ()) + filters: | + backend: + - 'pkg/a/b/c/**/!(*.jpeg|*.md)' + - 'pkg/x/**' +``` + +or + ```yaml - uses: dorny/paths-filter@v3 id: filter