From 79aa90d09b21dd339694f625aa063135fa37bb0c Mon Sep 17 00:00:00 2001 From: Tony Date: Sat, 25 Oct 2025 01:52:08 +0800 Subject: [PATCH] chore: switch to dataaxiom/ghcr-cleanup-action --- .github/workflows/ghcr-retention.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ghcr-retention.yml b/.github/workflows/ghcr-retention.yml index 1804c7f5c..76eb95003 100644 --- a/.github/workflows/ghcr-retention.yml +++ b/.github/workflows/ghcr-retention.yml @@ -9,15 +9,18 @@ jobs: cleanup: runs-on: ubuntu-latest permissions: + packages: write contents: read steps: - name: Delete old container versions (30+ days) - uses: vlaurin/action-ghcr-prune@0cf7d39f88546edd31965acba78cdcb0be14d641 # v0.6.0 + uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16 with: - token: ${{ secrets.PAT }} - user: ${{ github.repository_owner }} - container: rsshub dry-run: false - keep-younger-than: 30 # days - keep-last: 5 - prune-untagged: true + token: ${{ secrets.GITHUB_TOKEN }} + package: rsshub + older-than: 30 days + keep-n-tagged: 5 + delete-untagged: true + delete-ghost-images: true + delete-orphaned-images: true + delete-partial-images: true