actions-marketplace-validations/Delete Artifacts

Clean up those artifacts and save yourself some headaches

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
GITHUB_TOKENGitHub 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_REPOSITORYThe target github repo in the format owner/repoyes${{github.repository}}
run_idA specific Actions run identifier. You can use this to specify the current run and do some post-run cleanup. no
min_bytesThe 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. yes0
max_bytesThe 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_nameThe name of a specific artifact to delete. If not specified, this may result in _all_ artifacts being deleted. no
patternA POSIX regular expression. This is useful, for example, if you have matrix artifacts with a common prefix or suffix. no
active_durationA 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_levelSpecifies a custom log level. Choose from these options: * debug * info * warn * error no
dry_runPerform a dry-run. It's recommended to do this first to be sure you have correct settings. nofalse

no outputs