bcgov/Diff Triggers

Check if changed files match trigger paths. Returns true if any trigger matches, false otherwise. Always returns true if triggers are omitted.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 2, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: bcgov/action-diff-triggers@a80e4b3cf77b7e05f84e74030e3bfa08b717a574 # v1.2.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
triggersPaths used to trigger an event; e.g. ('./backend/' './frontend/); always trigger if omitted
refReference to compare against (e.g., 'main', 'HEAD^', commit SHA). Defaults to base repo default branch for PRs, or HEAD^ for non-PR events. Local refs (HEAD^, HEAD~2) work for non-PR events; remote refs (branches, tags, SHAs) work for all eventsno
github_tokenSpecify token (GH or PAT), instead of inheriting one from the calling workflow${{ github.token }}
annotationsEmit workflow summary annotations (`::notice::`) for fired/not fired results. Set to false to suppress annotationsnotrue
namedescription
triggeredBoolean result of triggers