-
Notifications
You must be signed in to change notification settings - Fork 9
/
action.yml
72 lines (72 loc) · 2.8 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
64
65
66
67
68
69
70
71
72
name: 'GHCR Pruning'
description: 'GitHub Action to prune/delete container versions from GitHub Container Registry (ghcr.io)'
branding:
icon: 'scissors'
color: 'blue'
inputs:
token:
description: 'Secret access token with scopes `packages:read` and `packages:delete` and write permissions on the targeted container'
required: true
organization:
description: 'Organisation to which the container belongs, mutually exclusive with input `user`'
required: false
user:
description: 'User to which the container belongs, mutually exclusive with input `organization`'
required: false
container:
description: 'Name of the container to prune'
required: true
dry-run:
description: 'When `true` prints out matching container versions without pruning them'
required: false
default: false
older-than:
description: 'Minimum age in days of container versions to prune'
required: false
default: 0
deprecationMessage: Replaced by input `keep-younger-than`. This input will be removed in v2.0.0.
keep-last:
description: 'Count of most recent, matching containers to exclude from pruning'
required: false
default: 0
keep-tags:
description: |
List of tags to exclude from pruning, one per line.
Any version with at least one matching tag will be excluded.
Matching is exact and case-sensitive.
required: false
keep-tags-regexes:
description: |
List of regular expressions for tags to exclude from pruning, one per line.
Each expression will be evaluated against all tags of a version.
Any version with at least one tag matching the expression will be excluded from pruning.
required: false
keep-younger-than:
description: 'Minimum age in days of container versions that will be pruned'
required: false
default: 0
prune-tags-regexes:
description: |
List of regular expressions for tags to include in pruning, one per line.
Each expression will be evaluated against all tags of a version.
Any version with at least one tag matching the expression will be included in pruning.
required: false
prune-untagged:
description: 'Whether untagged container versions should be pruned'
required: false
default: false
untagged:
description: 'Whether untagged container versions should be pruned'
required: false
default: false
deprecationMessage: Replaced by input `prune-untagged`. This input will be removed in v2.0.0.
tag-regex:
description: 'Regular expression matching tagged container versions which should be pruned'
required: false
deprecationMessage: Replaced by input `prune-tags-regexes`. This input will be removed in v2.0.0.
output:
count:
description: 'Count of container versions that were pruned'
runs:
using: 'node20'
main: 'dist/index.js'