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:
Michal Dorner 2020-06-19 23:39:06 +02:00 committed by GitHub
parent 4eb15bc267
commit 7d201829e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 301 additions and 91 deletions

View file

@ -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)