diff --git a/.github/workflows/cleanup-old-packages.yml b/.github/workflows/cleanup-old-packages.yml new file mode 100644 index 00000000000..db89da46d8c --- /dev/null +++ b/.github/workflows/cleanup-old-packages.yml @@ -0,0 +1,24 @@ +# 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' \ No newline at end of file