ci: clean old package

Signed-off-by: Larvan2 <78135608+Larvan2@users.noreply.github.com>
This commit is contained in:
Larvan2 2023-12-05 20:39:47 +08:00 committed by GitHub
parent ad6b3bf19f
commit 0b67cc7021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
.github/workflows/cleanPkg.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: clean old package
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
del_runs:
runs-on: ubuntu-latest
steps:
- uses: actions/delete-package-versions@v4
with:
package-name: 'metacubexd'
package-type: 'container'
min-versions-to-keep: 3
delete-only-untagged-versions: 'true'