Skip to content

Commit 185240e

Browse files
committed
test
1 parent b5f7860 commit 185240e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/ghcr-prune.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Cleanup workflow for pruning old commit-hash Docker tags from GHCR.
22
name: GHCR Tag Prune
33
on:
4-
pull_request:
54
schedule:
65
- cron: "0 6 * * *" # daily at 06:00 UTC
76
workflow_dispatch:
@@ -77,7 +76,7 @@ jobs:
7776
const versions = await github.paginate(listFn, listParams);
7877
core.info(`Found ${versions.length} versions`);
7978
80-
const hashRegex = /^[0-9a-f]{40}$/i;
79+
const hashRegex = /^[0-9a-f]{7,64}$/i;
8180
let deleted = 0;
8281
for (const version of versions) {
8382
const created = new Date(version.created_at).getTime();

0 commit comments

Comments
 (0)