From cae9006b65a1a53044b518c68e13e835c54948a7 Mon Sep 17 00:00:00 2001 From: Michael Hinton Date: Thu, 2 Jul 2026 13:50:34 -0600 Subject: [PATCH] docs: update outputs in readme to account for the 'every' predicate-quantifier (#247) Co-authored-by: Sascha Bratton --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c94571d..0811cc7 100644 --- a/README.md +++ b/README.md @@ -187,10 +187,14 @@ For more information, see [CHANGELOG](https://github.com/dorny/paths-filter/blob ## Outputs -- For each filter, it sets output variable named by the filter to the text: - - `'true'` - if **any** of changed files matches any of filter rules - - `'false'` - if **none** of changed files matches any of filter rules -- For each filter, it sets an output variable with the name `${FILTER_NAME}_count` to the count of matching files. +- Each filter sets an output variable, named after the filter, whose text value depends on the `predicate-quantifier` setting: + - With `predicate-quantifier: 'some'` (default): + - `'true'` - if **any** changed file matches **at least one** of the filter's rules + - `'false'` - if **no** changed file matches **at least one** of the filter's rules + - With `predicate-quantifier: 'every'`: + - `'true'` - if **any** changed file matches **all** of the filter's rules + - `'false'` - if **no** changed file matches **all** of the filter's rules +- Each filter sets an output variable with the name `${FILTER_NAME}_count` to the count of matching files. - If enabled, for each filter it sets an output variable with the name `${FILTER_NAME}_files`. It will contain a list of all files matching the filter. - `changes` - JSON array with names of all filters matching any of the changed files.