Skip to content

Commit f6731a5

Browse files
committed
fix(workflow): update image cleanup job to use UTC for cut-off and refine tag filtering
1 parent e945f51 commit f6731a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/images-cleanup.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ env:
99
jobs:
1010
cleanup:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
packages: write
1214
steps:
1315
- name: Delete old PR images
1416
uses: snok/container-retention-policy@v2
1517
with:
1618
image-names: ${{ env.IMAGE_NAME }}
17-
cut-off: 30 days ago
19+
cut-off: 30 days ago UTC
20+
account-type: personal
1821
keep-at-least: 3
19-
tags-keep: "pr-.*" # Target only PR images
22+
filter-tags: "pr-*"
23+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)