Files
RSSHub/.github/workflows/ghcr-retention.yml
T
dependabot[bot] 23aec2be60 chore(deps): bump dataaxiom/ghcr-cleanup-action from 1.2.0 to 1.2.1 (#22109)
Bumps [dataaxiom/ghcr-cleanup-action](https://github.com/dataaxiom/ghcr-cleanup-action) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/dataaxiom/ghcr-cleanup-action/releases)
- [Commits](https://github.com/dataaxiom/ghcr-cleanup-action/compare/374e2028c8fb93b7219f3771cd405fab95d3dec4...f092b48ba3b604b2a83690dc4b2bbb3392e1045f)

---
updated-dependencies:
- dependency-name: dataaxiom/ghcr-cleanup-action
  dependency-version: 1.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-26 14:39:05 +00:00

27 lines
792 B
YAML

name: 'Clean up GHCR Packages'
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-slim
permissions:
packages: write
contents: read
steps:
- name: Delete old container versions (30+ days)
uses: dataaxiom/ghcr-cleanup-action@f092b48ba3b604b2a83690dc4b2bbb3392e1045f # v1.2.1
with:
dry-run: false
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