Skip to content

Add safety check to avoid breaking everything if the db query fails. … #2

Add safety check to avoid breaking everything if the db query fails. …

Add safety check to avoid breaking everything if the db query fails. … #2

# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.
name: Clean up old packages
on:
schedule:
- cron: '00 05 * * *'
push:
branches: [ "master" ]
jobs:
clean-up-old-packages:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0
with:
package-name: 'lychee'
package-type: 'container'
min-versions-to-keep: 10
delete-only-untagged-versions: 'true'