chore: switch to dataaxiom/ghcr-cleanup-action

This commit is contained in:
Tony 2025-10-25 01:52:08 +08:00
parent 048b8e8ac2
commit 79aa90d09b
1 changed files with 10 additions and 7 deletions

View File

@ -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