mirror of
https://github.com/dorny/paths-filter.git
synced 2026-03-10 16:34:28 +00:00
example how to exclude paths in README.md
Add another example how to exclude paths. Found out by reading doc of picomatch and trying.
This commit is contained in:
parent
de90cc6fb3
commit
f180dc4515
13
README.md
13
README.md
@ -482,6 +482,19 @@ jobs:
|
||||
<details>
|
||||
<summary>Detect changes in folder only for some file extensions</summary>
|
||||
|
||||
```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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user