amezin/Detect changes
Check whether any files matching the specified glob pattern(s) were changed in a pull request or push (or between two arbitrary commits).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| repository | Target repository name with owner | yes | ${{ github.repository }} |
| files | File path/name glob patterns to check, one pattern per line | yes | — |
| base | Base commit/branch | yes | ${{ github.event.merge_group.base_sha || github.event.pull_request.base.sha || github.event.before }} |
| head | Head commit/branch | yes | ${{ github.sha }} |
| ignore-removed | Ignore removed files - return `false` if all changes are just removals | yes | false |
| github-token | GitHub API token to use | yes | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| changed | `true` if a change in the files was detected, `false` otherwise |