dorny / paths-filter

Conditionally run actions based on files modified by PR, feature branch or pushed commits
MIT License
1.98k stars 230 forks source link

feat: add config parameter for predicate quantifier #224

Closed petermetz closed 4 months ago

petermetz commented 4 months ago

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

PetersonBenhameCEO commented 4 months ago

ok

petermetz commented 4 months ago

@PetersonBenhameCEO Thank you!

dorny commented 4 months ago

@petermetz Thanks for the PR. It's very well-prepared. I will merge it now and release a new version.

petermetz commented 4 months ago

@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! 🎉

dorny commented 4 months ago

Released as v3.0.2