From 0b67cc70215053169935e0c3127a0f8befa037d3 Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:39:47 +0800 Subject: [PATCH] ci: clean old package Signed-off-by: Larvan2 <78135608+Larvan2@users.noreply.github.com> --- .github/workflows/cleanPkg.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cleanPkg.yml diff --git a/.github/workflows/cleanPkg.yml b/.github/workflows/cleanPkg.yml new file mode 100644 index 0000000..4d37b66 --- /dev/null +++ b/.github/workflows/cleanPkg.yml @@ -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'