mirror of
https://github.com/dorny/paths-filter.git
synced 2026-07-01 18:51:40 +00:00
Compare commits
4 Commits
e8c4653252
...
103cc088da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
103cc088da | ||
|
|
668c092af3 | ||
|
|
209e61402d | ||
|
|
82c3ed7e7f |
20
README.md
20
README.md
@ -51,7 +51,7 @@ don't allow this because they don't work on a level of individual jobs or steps.
|
||||
with:
|
||||
filters: |
|
||||
src:
|
||||
- 'src/**'
|
||||
- 'src/**/*'
|
||||
|
||||
# run only if some file in 'src' folder was changed
|
||||
- if: steps.changes.outputs.src == 'true'
|
||||
@ -198,9 +198,9 @@ jobs:
|
||||
with:
|
||||
filters: |
|
||||
backend:
|
||||
- 'backend/**'
|
||||
- 'backend/**/*'
|
||||
frontend:
|
||||
- 'frontend/**'
|
||||
- 'frontend/**/*'
|
||||
|
||||
# run only if 'backend' files were changed
|
||||
- name: backend tests
|
||||
@ -242,9 +242,9 @@ jobs:
|
||||
with:
|
||||
filters: |
|
||||
backend:
|
||||
- 'backend/**'
|
||||
- 'backend/**/*'
|
||||
frontend:
|
||||
- 'frontend/**'
|
||||
- 'frontend/**/*'
|
||||
|
||||
# JOB to build and test backend code
|
||||
backend:
|
||||
@ -444,11 +444,11 @@ jobs:
|
||||
# src filter will match any path under common, config and src folders
|
||||
filters: |
|
||||
shared: &shared
|
||||
- common/**
|
||||
- config/**
|
||||
- common/**/*
|
||||
- config/**/*
|
||||
src:
|
||||
- *shared
|
||||
- src/**
|
||||
- src/**/*
|
||||
```
|
||||
|
||||
</details>
|
||||
@ -467,8 +467,8 @@ jobs:
|
||||
# Multiple change types can be specified using `|` as the delimiter.
|
||||
filters: |
|
||||
shared: &shared
|
||||
- common/**
|
||||
- config/**
|
||||
- common/**/*
|
||||
- config/**/*
|
||||
addedOrModified:
|
||||
- added|modified: '**'
|
||||
allChanges:
|
||||
|
||||
@ -44,6 +44,11 @@ inputs:
|
||||
This option takes effect only when changes are detected using git against different base branch.
|
||||
required: false
|
||||
default: '100'
|
||||
predicate-quantifier:
|
||||
description: |
|
||||
allows to override the "at least one pattern" behavior to make it so that all of the patterns have to match or otherwise the file is excluded.
|
||||
required: false
|
||||
default: 'some'
|
||||
outputs:
|
||||
changes:
|
||||
description: JSON array with names of all filters matching any of changed files
|
||||
|
||||
Loading…
Reference in New Issue
Block a user