From 841d6ee569a56745666fb5d8325c1d8e15ac14c7 Mon Sep 17 00:00:00 2001 From: Haorui Zhou Date: Thu, 27 Aug 2026 09:04:55 -0400 Subject: [PATCH] fix package cleanup cut-off to a timezone-aware age, not '5 versions' --- .github/workflows/package-cleanup.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-cleanup.yml b/.github/workflows/package-cleanup.yml index 6d52fc83..63fb683e 100644 --- a/.github/workflows/package-cleanup.yml +++ b/.github/workflows/package-cleanup.yml @@ -20,7 +20,9 @@ jobs: uses: snok/container-retention-policy@v2 with: image-names: ${{ matrix.package }} - cut-off: 5 versions + # cut-off must be a timezone-aware datetime (dateparser); version + # counts belong in keep-at-least. "5 versions" fails validation. + cut-off: 4 weeks ago UTC keep-at-least: 5 skip-tags: latest, test-latest account-type: org