mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-24 03:18:02 +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:
2
.github/filters.yml
vendored
Normal file
2
.github/filters.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
any:
|
||||
- "**/*"
|
@ -22,6 +22,10 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./
|
||||
id: filter
|
||||
with:
|
||||
filters: '.github/filters.yml'
|
||||
- uses: ./
|
||||
id: inlineFilter
|
||||
with:
|
||||
filters: |
|
||||
src:
|
||||
@ -31,5 +35,5 @@ jobs:
|
||||
any:
|
||||
- "**/*"
|
||||
- name: filter-test
|
||||
if: steps.filter.outputs.any != 'true'
|
||||
if: steps.filter.outputs.any != 'true' || steps.inlineFilter.outputs.any != 'true'
|
||||
run: exit 1
|
||||
|
Reference in New Issue
Block a user