-
Notifications
You must be signed in to change notification settings - Fork 6
/
action.yml
29 lines (28 loc) · 859 Bytes
/
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
name: 'Delete ghcr.io package tag'
description: 'Delete a tagged package from ghcr.io'
inputs:
package-name:
description: 'Package name'
required: true
tag:
description: 'Package tag'
required: true
github-token:
description: 'GitHub Personal Access Token with package deletion permissions.'
required: true
github-org:
description: 'If hosted in an organization, provide it here'
default: ''
required: true
runs:
using: "composite"
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install packages
run: pip install requests
shell: bash
- name: Delete image from ghcr.io
run: python ${{ github.action_path }}/docker-cleanup.py ${{ inputs.package-name }} ${{ inputs.tag }} ${{ inputs.github-token }} ${{ inputs.github-org }}
shell: bash