From 76739b30594c1758b6ebdcffb3f3cb4b7a0ec1ab Mon Sep 17 00:00:00 2001 From: Josua Frank Date: Wed, 8 May 2024 22:38:57 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8188ea8..c809719 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,8 +58,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Delete old image versions - uses: actions/delete-package-versions@v5 + uses: snok/container-retention-policy@v2 with: - package-type: "container" - package-name: ${{ github.event.repository.name }} - min-versions-to-keep: 3 + image-names: ${{ github.event.repository.name }} + cut-off: one hour ago UTC + account-type: personal + token: ${{ secrets.GITHUB_TOKEN }} + token-type: github-token