yumemi-inc/Changed Files with filter
A GitHub Action that outputs a list of 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 |
|---|---|---|---|
| separator | Separator between file names in plain format. | no | "" |
| format | Output format for list of file names. Either plain or json. | no | plain |
| patterns | Path pattern to filter. See README for details. | no | — |
| statuses | Status of pull request files to include from output. Specify added, modified, renamed, and removed separately. | no | — |
| exclude-statuses | Status of pull request files to exclude from output. Specify added, modified, renamed, and removed separately. | no | — |
| run | Bash script to run if at least one 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 }} |
Outputs
| name | description |
|---|---|
| files | List of file names after filtering. |
| exists | Whether at least one file exists after filtering. |
| additions | Total additions after filtering. |
| deletions | Total deletions after filtering. |
| changes | Total changes after filtering. |
| action-path | Used to access artifact files. |