Skip to content

Package retention policy #98

Package retention policy

Package retention policy #98

name: Package retention policy
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Once a week: "At 00:00 on Sunday."
defaults:
run:
shell: pwsh
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Cleanup old github-issue-forms-parser Docker images
uses: snok/container-retention-policy@v2
with:
image-names: github-issue-forms-parser
cut-off: One month ago UTC
account-type: personal
keep-at-least: 5
skip-tags: latest, main, v*
token: ${{ secrets.CLEANUP_PACKAGES_GH_TOKEN }}