mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00:00
Support reusable paths blocks via yaml anchors (#13)
* Add support for nested arrays of path expressions * Remove pull_request trigger type options Default value is fine: opened, synchronize, reopened * Add CHANGELOG * Update README
This commit is contained in:
parent
4eb15bc267
commit
7d201829e2
9 changed files with 301 additions and 91 deletions
|
@ -33,6 +33,7 @@ Output variables can be later used in the `if` clause to conditionally run speci
|
|||
### Notes
|
||||
- minimatch [dot](https://www.npmjs.com/package/minimatch#dot) option is set to true - therefore
|
||||
globbing will match also paths where file or folder name starts with a dot.
|
||||
- You can use YAML anchors to reuse path expression(s) inside another rule. See example in the tests.
|
||||
|
||||
### Example
|
||||
```yaml
|
||||
|
@ -48,7 +49,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dorny/paths-filter@v2.0.0
|
||||
- uses: dorny/paths-filter@v2.1.0
|
||||
id: filter
|
||||
with:
|
||||
# inline YAML or path to separate file (e.g.: .github/filters.yaml)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue