name: Cleanup old container images
on:
schedule:
- cron: '0 3 * * 0'
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
cleanup:
runs-on: ubuntu-latest
steps:
- name: Delete old GHCR images
uses: dataaxiom/ghcr-cleanup-action@v1
with:
delete-untagged: true
keep-n-tagged: 5