-
Notifications
You must be signed in to change notification settings - Fork 315
feat: add config parameter for predicate quantifier #224
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
Conversation
Setting the new 'predicate-quantifier' configuration parameter to 'every' makes it so that all the patterns have to match a file for it to be considered changed. This can be leveraged to ensure that you only build & test software changes that have real impact on the behavior of the code, e.g. you can set up your build to run when Typescript/Rust/etc. files are changed but markdown changes in the diff will be ignored and you consume less resources to build. The default behavior does not change by the introduction of this feature so upgrading can be done safely knowing that existing workflows will not break. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @outSH
ok |
@PetersonBenhameCEO Thank you! |
@petermetz Thanks for the PR. It's very well-prepared. I will merge it now and release a new version. |
@dorny Yay, thank you very much! Looking forward to using the new release in our CI! 🎉 |
Released as v3.0.2 |
In openfoodfacts#11624 the original plan was to add some negative matching blobs using `paths-filter`, but that did not function as intended. As a result of that, we switched to use `tj-actions/paths-filter` instead, in pull requests openfoodfacts#11630 and openfoodfacts#11644. The reason `changed-files` did not work as expected is/was the lack of dorny/paths-filter#224 - a feature only available from v3.0.2 onwards. This changeset enables support for the `predicate-quantifier` setting and configures it for the negative-blob matches on the `code` fileset.
Setting the new 'predicate-quantifier' configuration parameter to 'every'
makes it so that all the patterns have to match a file for it to be
considered changed.
This can be leveraged to ensure that you only build & test software changes
that have real impact on the behavior of the code, e.g. you can set up your
build to run when Typescript/Rust/etc. files are changed but markdown
changes in the diff will be ignored and you consume less resources to build.
The default behavior does not change by the introduction of this feature
so upgrading can be done safely knowing that existing workflows will not
break.
Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com