From 1f78a445586c793fa285366a9ef06a48b5fe579a Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Thu, 28 Dec 2023 16:58:15 +0000 Subject: [PATCH] try differently --- .../workflows/pull-request-master-closed.yaml | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pull-request-master-closed.yaml b/.github/workflows/pull-request-master-closed.yaml index caa8db0cc..49bc9af91 100644 --- a/.github/workflows/pull-request-master-closed.yaml +++ b/.github/workflows/pull-request-master-closed.yaml @@ -16,20 +16,10 @@ jobs: name: Retention policy runs-on: ubuntu-latest steps: - - uses: snok/container-retention-policy@v2 + - uses: actions/delete-package-versions@v4 with: - image-names: '*' - cut-off: two hours ago UTC+4 - timestamp-to-use: updated_at - account-type: personal + package-version-ids: PR${{ github.event.pull_request.number }} + package-name: ${{ github.repository }}-* + package-type: container + ignore-versions: '^(dev)|([0-9])' token: ${{ secrets.PACKAGE_PRUNER_TOKEN }} - filter-tags: PR${{ github.event.pull_request.number }} - - - uses: snok/container-retention-policy@v2 - with: - image-names: '*' - cut-off: two hours ago UTC+4 - timestamp-to-use: updated_at - account-type: personal - token: ${{ secrets.PACKAGE_PRUNER_TOKEN }} - untagged-only: true