Skip to content

trying

trying #14

name: 'Remove Pull Request Packages'
on:
pull_request:
types: [closed]
permissions:
packages: write
env:
REGISTRY: ghcr.io
jobs:
retention_policy:
if: github.event.pull_request.merged == true
name: Retention policy
runs-on: ubuntu-latest
steps:
- name: Delete 'dev' containers older than a week
uses: snok/container-retention-policy@v2
with:
image-names: playnite-web-game-db-updater
cut-off: one millisecond ago
account-type: personal
keep-at-least: 0
token: ${{ secrets.PACKAGE_PRUNER_TOKEN }}
skip-tags: dev, v*
filter-tags: PR${{ github.event.pull_request.number }}*