Filters input accepts path to external yaml file (#8)

* Filters input accepts path to external yaml file

* Fix formatting and eslint issues

* Fix file ext of filters yaml file

* Update documentation in README file
This commit is contained in:
Michal Dorner 2020-05-24 22:50:33 +02:00 committed by GitHub
parent 0612377665
commit a2e5f9f7bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 48 additions and 8 deletions

View file

@ -22,7 +22,7 @@ Output variables can be later used in the `if` clause to conditionally run speci
### Inputs
- **`githubToken`**: GitHub Access Token - defaults to `${{ github.token }}`
- **`filters`**: YAML dictionary where keys specifies rule names and values are lists of file path patterns
- **`filters`**: Path to the configuration file or directly embedded string in YAML format. Filter configuration is a dictionary, where keys specifies rule names and values are lists of file path patterns.
### Outputs
- For each rule it sets output variable named by the rule to text:
@ -53,6 +53,7 @@ jobs:
- uses: dorny/pr-changed-files-filter@v1
id: filter
with:
# inline YAML or path to separate file (e.g.: .github/filters.yaml)
filters: |
backend:
- 'backend/**/*'