actions-marketplace-validations/Delete Artifacts
Clean up those artifacts and save yourself some headaches
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | GitHub token used to access the repository defined in the GITHUB_REPOSITORY input. It is recommended to [create a new personal access token](https://github.com/settings/tokens/new) with the least permissions (e.g. public_repo). Using a service account for the GitHub Token is also highly recommended. [Learn more about using secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) | yes | ${{github.token}} |
| GITHUB_REPOSITORY | The target github repo in the format owner/repo | yes | ${{github.repository}} |
| run_id | A specific Actions run identifier. You can use this to specify the current run and do some post-run cleanup. | no | — |
| min_bytes | The minimum file size in bytes. The default is 0, effectively meaning it will start off by matching all files. Consider applying another filter such as name or pattern if you'd like to avoid deleting everything. **NOTE** This value must be a quoted integer. | yes | 0 |
| max_bytes | The maximum file size in bytes. If not specified, there is no limit. This option is useful if you have many small artifacts and want to keep a specific larger artifact. **NOTE** This value must be a quoted integer. | no | — |
| artifact_name | The name of a specific artifact to delete. If not specified, this may result in _all_ artifacts being deleted. | no | — |
| pattern | A POSIX regular expression. This is useful, for example, if you have matrix artifacts with a common prefix or suffix. | no | — |
| active_duration | A duration string which defines the duration during which artifacts are considered "active" and will therefore not be deleted. This setting is useful to avoid deleting artifacts for current or very recent runs (e.g. specify "10m"), or to allow for debugging of artifacts for some amount of time (e.g. specify "23h59m"). This acts as a retention period for artifacts when using otherwise aggressive deletion settings. This format follows the [go Duration](https://golang.org/pkg/time/#ParseDuration) formatting. | no | — |
| log_level | Specifies a custom log level. Choose from these options: * debug * info * warn * error | no | — |
| dry_run | Perform a dry-run. It's recommended to do this first to be sure you have correct settings. | no | false |
Outputs
no outputs