Skip to content

build(deps): bump src/libs/converter from 56ce7c2 to 3c4c47f #481

build(deps): bump src/libs/converter from 56ce7c2 to 3c4c47f

build(deps): bump src/libs/converter from 56ce7c2 to 3c4c47f #481

name: Cleanup GHCR docker packages on closed pull request
on:
pull_request_target:
types:
- closed
jobs:
cleanup-package:
name: Cleanup closed PR package
runs-on: ubuntu-latest
permissions:
contents: read # Needed to checkout the repository if the action requires it (though this specific action might not)
packages: write # This is the crucial permission for deleting packages from GHCR
steps:
- name: Cleanup web package
uses: snok/container-retention-policy@v2
with:
image-names: ${{ github.event.repository.name }}-web
cut-off: now UTC
timestamp-to-use: created_at
account-type: org
org-name: ${{ github.repository_owner }}
keep-at-least: 0
filter-tags: pr-${{github.event.pull_request.number}}
token: ${{ secrets.SNOK_RETENTION_GITHUB_TOKEN }}