-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathaction.yml
63 lines (51 loc) · 1.39 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
55
56
57
58
59
60
61
62
63
name: Delete old packages
description: Deletes old package versions
inputs:
user:
description: >-
User hosting the package(s).
required: false
organization:
description: >-
Organization hosting the package(s).
required: false
names:
description: >-
Names of the packages.
required: true
semver-pattern:
description: >-
Semver range pattern of the versions.
required: false
version-pattern:
description: >-
Regex pattern of the versions.
Defaults to true for all versions.
required: false
keep:
description: >-
Number of versions to exclude from deletions.
Defaults to 2.
required: false
type:
description: >-
The type of the packages, e.g. "npm" or "container".
required: false
token:
description: >-
Token with the necessary scopes to delete and list package versions.
Defaults to github.token scoped to the repo running the action. To delete package versions
of a package outside the repo the action is running in use a Personal Access Token stored as a secret.
required: false
default: ${{ github.token }}
dry-run:
description: >-
If the action should only print what it would delete instead of actually deleting.
required: false
default: "false"
runs:
using: node20
main: dist/index.js
branding:
icon: "delete"
color: "green"