From ea86e9685f3a3b06a84af910b50ec06b0313a893 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 9 Apr 2025 15:00:36 +0200 Subject: [PATCH] ci: Use action from other repo to purge unused images for consistency --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d345968..eab365d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,9 +78,10 @@ jobs: webhook_url: ${{ env.PORTAINER_WEBHOOK_URL }} - name: Purge outdated images - uses: actions/delete-package-versions@v5 + uses: snok/container-retention-policy@v3.0.0 with: - package-name: revanced-api - package-type: container - min-versions-to-keep: 5 + account: ${{ github.repository_owner }} token: ${{ secrets.GITHUB_TOKEN }} + image-names: revanced-api + keep-n-most-recent: 5 + cut-off: 1w