Skip to content

Repository files navigation

compare-changes

Build

Takes the name of a wildcard workflow (* in .github/workflows/* incl. file extension) and a JSON array generated with find-changes-action as inputs, to output true/false based on whether any of the on.push.paths of the wildcard workflow match a file in the JSON array.

This is useful to introduce job and step granularity to your workflows. One can save a lot of time (and money by reducing runner usage) by executing long-running jobs conditionally.

More information

There is additional documentation available on

Installation

Cargo

CLI

cargo install --features=cli compare-changes

Library

cargo add compare-changes

Brew

brew install anttiharju/tap/compare-changes

Nix

Via anttiharju's nur-packages. Please note that as of writing it is not connected to the upstream NUR.

License

The following licenses apply to this project:

About

Lib & CLI for GitHub workflow paths filter syntax

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages