wow-actions/Delete Stale Releases
Automatically deleting stale releases
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| GITHUB_TOKEN | Your GitHub token for authentication. | yes | — |
| dry-run | Only list releases will be deleted. | no | false |
| keep_latest_count | Specifies the number of latest releases be keeped (sorted by `created_at`) to keep. Pass `0` if you want to delete all releases. | no | 3 |
| keep_latest_days | Specifies the day count from now and releases in which duration will be keeped. | no | — |
| delete_tags | Specifies whether to delete tags associated to older releases or not. Older tags without any associated releases will not be deleted. | no | false |
| key | Specifies the key of the release object and corresponding value will be matched with `include` and `exclude` pattern. | no | name |
| include | Specifies keyworlds to match with the value specified by `key` and matched releases will be deleted. | no | — |
| exclude | Specifies keyworlds to match with the value specified by `key` and matched releases will be keeped. | no | — |
| include_draft | Specifies whether draft releases should be deleted or not. | no | true |
| include_prerelease | Specifies whether prerelease releases should be deleted or not. | no | true |
| group | Specifies the regrex or substring to generate the group name. Match with the release name and matched substring will be replaced with empty string then other strings be combined to group name. When `group` is specified the `keep_latest_count` and `keep_latest_days` will be base on the grouped releases. It's useful to delete releases in mono-repo which contains many releases of sub-repos. | no | — |
Outputs
| name | description |
|---|---|
| releases | The deleted releases converted to a string via `JSON.stringify`. |
| tags | The deleted tags converted to a string via `JSON.stringify`. |