mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00: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:
parent
0612377665
commit
a2e5f9f7bb
6 changed files with 48 additions and 8 deletions
|
@ -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/**/*'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue