Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add predicate-quantifier to action manifest #259

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@ inputs:
This option takes effect only when changes are detected using git against different base branch.
required: false
default: '100'
predicate-quantifier:
description: |
Optional parameter to override the default behavior of file matching algorithm.
By default files that match at least one pattern defined by the filters will be included.
This parameter 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.
An example scenario where this is useful if you would like to match all
.ts files in a sub-directory but not .md files.
The filters below will match markdown files despite the exclusion syntax UNLESS
you specify 'every' as the predicate-quantifier parameter. When you do that,
it will only match the .ts files in the subdirectory as expected.

backend:
- 'pkg/a/b/c/**'
- '!**/*.jpeg'
- '!**/*.md'
required: false
default: 'some'
outputs:
changes:
description: JSON array with names of all filters matching any of changed files
Expand Down