-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
54 lines (54 loc) · 2.32 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Delete Stale Releases
description: Automatically deleting stale releases
author: bubkoo <[email protected]>
inputs:
GITHUB_TOKEN:
description: Your GitHub token for authentication.
required: true
dry-run:
description: Only list releases will be deleted.
required: false
default: false
keep_latest_count:
description: Specifies the number of latest releases be keeped (sorted by `created_at`) to keep. Pass `0` if you want to delete all releases.
required: false
default: 3
keep_latest_days:
description: Specifies the day count from now and releases in which duration will be keeped.
required: false
delete_tags:
description: Specifies whether to delete tags associated to older releases or not. Older tags without any associated releases will not be deleted.
required: false
default: false
key:
description: Specifies the key of the release object and corresponding value will be matched with `include` and `exclude` pattern.
required: false
default: name
include:
description: Specifies keyworlds to match with the value specified by `key` and matched releases will be deleted.
required: false
exclude:
description: Specifies keyworlds to match with the value specified by `key` and matched releases will be keeped.
required: false
include_draft:
description: Specifies whether draft releases should be deleted or not.
required: false
default: true
include_prerelease:
description: Specifies whether prerelease releases should be deleted or not.
required: false
default: true
group:
description: 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.
required: false
outputs:
releases:
description: The deleted releases converted to a string via `JSON.stringify`.
tags:
description: The deleted tags converted to a string via `JSON.stringify`.
runs:
using: node16
main: dist/index.js
branding:
icon: delete
color: red # gray-dark purple red orange green blue yellow black white