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