yumemi-inc/Path Filter
A GitHub Action to filter changed files in pull requests and commits.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| patterns | Path pattern to filter. See README for details. | no | — |
| run | Bash script to run if at least one file exists after filtering. | no | — |
| run-if-not | Bash script to run if no file exists after filtering. | no | — |
| head-ref | Current branch, tag, or commit SHA to compare with base. | no | ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge',github.event.number) || github.sha }} |
| base-ref | Branch, tag, or commit SHA as a basis for comparison. | no | ${{ (github.event_name == 'pull_request' && github.base_ref) || (github.event_name == 'pull_request_target' && github.base_ref) || (github.event_name == 'push' && (startsWith(github.event.before, '0000') && github.event.repository.default_branch || github.event.before)) || (github.event_name == 'merge_group' && github.event.merge_group.base_sha) || github.event.repository.default_branch }} |
| use-merge-base | Whether to compare with the latest common commit. | no | false |
Outputs
| name | description |
|---|---|
| exists | Whether at least one file exists after filtering. |
| action-path | Used to access artifact files. |