From eadc4708ab1b26b9d5b63ddf41857ead83e07fdb Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Sat, 31 Oct 2026 00:29:33 +0100 Subject: [PATCH] ci: delete 200 unused manifests every hour --- .github/workflows/clean-manifests.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/clean-manifests.yaml b/.github/workflows/clean-manifests.yaml index a0b8287afe..5034b4fdec 100644 --- a/.github/workflows/clean-manifests.yaml +++ b/.github/workflows/clean-manifests.yaml @@ -1,6 +1,8 @@ name: Clean manifests on: + schedule: + - cron: "20 * * * *" workflow_dispatch: permissions: {} @@ -32,18 +34,18 @@ jobs: with: persist-credentials: false - - name: List the manifests to delete + - name: Delete the unused manifests env: GH_TOKEN: ${{ secrets.GHCR_CLEANUP_TOKEN }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_CLEANUP_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_CLEANUP_TOKEN }} - run: scripts/clean-manifests.sh + run: scripts/clean-manifests.sh --delete 200 - - name: Upload the list of manifests to delete + - name: Upload the list of deleted manifests if: ${{ always() }} uses: actions/upload-artifact@v7.0.2 with: - name: manifests-to-delete - path: scripts/manifests-to-delete.tsv + name: deleted-manifests + path: scripts/deleted-manifests.tsv if-no-files-found: ignore retention-days: 90