freenet-actions/check-file-size
This action checks all files in a configurable directory (recursively) for a configurable maximum file size. It also allows to automatically add a comment to the triggering PR that lists all oversized files.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | The GitHub token that will be used to create the comment if files exceeded the maximum file size | no | — |
| directory | The directory that will be recursively checked for oversized files | no | ./ |
| max_size | The maximum allowed file size in kilobytes | no | 16000 |
| post_comment | Whether the action should post a comment to the PR which lists the oversized files | no | true |
| fail_on_find | Whether the action should fail if files exceeding the maximum file size were found | no | false |
| ignored_files | A string array of files or directories that should not be checked | no | "" |
Outputs
| name | description |
|---|---|
| has_found_oversized_files | A boolean that indicates whether oversized files have been found |
| oversized_files | A string array of the files that exceeded the maximum file size |