mirror of
https://github.com/dorny/paths-filter.git
synced 2026-06-28 20:30:43 +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
1 changed files with 13 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue