-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
104 lines (101 loc) · 2.88 KB
/
action.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: GitHub Packages Admin
author: ShaneAPowell
description: List and Delete GitHub Packages
inputs:
operation:
required: true
description: Which package operation to perform.
ghtoken:
required: true
description: The GitHub PAT Access token.
org:
required: false
description: The GitHub Org Name if this is an Organization owned package.
default: __NONE__
user:
required: false
description: The GitHub User Name if this is a User owned package.
default: __NONE__
package_type:
required: true
description: The package type code.
package_name:
required: false
description: The package Name
default: __NONE__
fetch_limit:
required: false
description: The maximum total items to fetch from the API before filtering and sorting.
default: __NONE__
include:
required: false
description: The Include Filter. After the initial fetch, this keeps only what matches this filter.
default: __NONE__ __NONE__
exclude:
required: false
description: The Exclude Filter. After the initial fetch, and the include filter, this discards what matches this filter.
default: __NONE__ __NONE__
sort_by:
required: false
description: After the filters are done, sort the items by this field.
default: __NONE__
reverse:
required: false
description: Reverse the natural sort order of the sort_by field.
default: false
slice:
required: false
description: Run a python slice operation on the result after all filtering and sorting is done.
default: __NONE__ __NONE__
summary:
required: false
description: If the operation produces a list output, instead produce a summary output.
default: false
dryrun:
required: false
description: Delete operations are dangerous. By default dryrun is true. Set to false to actually execute the deletions.
default: true
debug:
required: false
description: Enable extra debug output logging
default: false
outputs:
result_json_output:
description: The result of the operation in json format
summary_json_output:
description: The summary of the operation in json format
runs:
using: docker
image: docker://ghcr.io/shaneapowell/ghaction-package-admin:develop
args:
- --operation
- ${{ inputs.operation }}
- --ghtoken
- ${{ inputs.ghtoken }}
- --org
- ${{ inputs.org }}
- --user
- ${{ inputs.user }}
- --package_type
- ${{ inputs.package_type }}
- --package_name
- ${{ inputs.package_name }}
- --include
- ${{ inputs.include }}
- --exclude
- ${{ inputs.exclude }}
- --sort_by
- ${{ inputs.sort_by }}
- --reverse
- ${{ inputs.reverse }}
- --slice
- ${{ inputs.slice }}
- --summary
- ${{ inputs.summary }}
- --dryrun
- ${{ inputs.dryrun }}
- --debug
- ${{ inputs.debug }}
branding:
icon: 'package'
color: 'blue'