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 GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 2, 2026
- License
- MIT
Pinned Snippet
uses: bcgov/action-diff-triggers@a80e4b3cf77b7e05f84e74030e3bfa08b717a574 # v1.2.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| triggers | Paths used to trigger an event; e.g. ('./backend/' './frontend/); always trigger if omitted | — | — |
| ref | Reference 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 events | no | — |
| github_token | Specify token (GH or PAT), instead of inheriting one from the calling workflow | — | ${{ github.token }} |
| annotations | Emit workflow summary annotations (`::notice::`) for fired/not fired results. Set to false to suppress annotations | no | true |
Outputs
| name | description |
|---|---|
| triggered | Boolean result of triggers |