mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
Export changed files grouped by change status (#23)
This commit is contained in:
parent
1ff702da35
commit
f34047f516
5 changed files with 130 additions and 32 deletions
|
@ -89,10 +89,15 @@ jobs:
|
|||
- modified: "LICENSE"
|
||||
any:
|
||||
- added|deleted|modified: "*"
|
||||
- name: Print changed files
|
||||
run: echo '${{steps.filter.outputs.files}}' | jq .
|
||||
- name: filter-test
|
||||
if: |
|
||||
steps.filter.outputs.add != 'true'
|
||||
|| steps.filter.outputs.rm != 'true'
|
||||
|| steps.filter.outputs.modified != 'true'
|
||||
|| steps.filter.outputs.any != 'true'
|
||||
|| !contains(fromJSON(steps.filter.outputs.files).added,'add.txt')
|
||||
|| !contains(fromJSON(steps.filter.outputs.files).modified,'LICENSE')
|
||||
|| !contains(fromJSON(steps.filter.outputs.files).deleted,'README.md')
|
||||
run: exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue