-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
67 lines (63 loc) · 1.7 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
name: GitHub container registry cleaning
description: Clean a GitHub Container registry by removing all unnecessary objects
branding:
icon: 'trash-2'
color: 'green'
inputs:
# Container registry inputs.
registry:
description: The URL of the container registry
default: ghcr.io
required: false
user:
description: The container registry user
default: ${{ github.repository_owner }}
required: false
password:
description: The container registry user password or access token
required: true
package:
description: The name of the package to clean
required: true
# Repository inputs.
repository:
description: The GitHub repository (format owner/repository) in which to check the pull requests statuses
default: ${{ github.repository }}
required: false
pr-tag-regex:
description: |
The regular expression used to match the pull request tags, must include one capture group for the PR id
default: "^pr-(\\d+).*"
required: false
# Misc inputs.
dry-run:
description: If true, compute everything but do no perform the deletion
default: "false"
required: false
debug:
description: Enable the debug logs
default: "false"
required: false
runs:
using: docker
image: Dockerfile
args:
# Container registry inputs.
- --registry
- ${{ inputs.registry }}
- --user
- ${{ inputs.user }}
- --password
- ${{ inputs.password }}
- --package
- ${{ inputs.package }}
# Repository inputs.
- --repository
- ${{ inputs.repository }}
- --pr-tag-regex
- ${{ inputs.pr-tag-regex }}
# Misc inputs.
- --dry-run
- ${{ inputs.dry-run }}
- --debug
- ${{ inputs.debug }}