Skip to content

Prune

Prune #46

Workflow file for this run

name: Prune
on:
schedule:
- cron: "0 12 * * SUN"
permissions:
contents: read
packages: write
env:
REGISTRY: ghcr.io
IMAGE_AUTHOR: mentalfs
IMAGE_NAME: irc3-twitch
TAG: latest
jobs:
prune:
runs-on: ubuntu-latest
steps:
- name: Prune old untagged images
if: ${{ github.ref == 'refs/heads/main' || github.actor == 'dependabot[bot]' }}
uses: vlaurin/action-ghcr-prune@v0.6.0
with:
token: ${{ secrets.PACKAGE_DELETE_TOKEN }}
user: ${{ env.IMAGE_AUTHOR }}
container: ${{ env.IMAGE_NAME }}
dry-run: false
keep-last: 2
prune-untagged: true