mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-23 19:08:03 +02:00
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:
@ -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/**/*'
|
||||
|
Reference in New Issue
Block a user