We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5f7860 commit 185240eCopy full SHA for 185240e
1 file changed
.github/workflows/ghcr-prune.yml
@@ -1,7 +1,6 @@
1
# Cleanup workflow for pruning old commit-hash Docker tags from GHCR.
2
name: GHCR Tag Prune
3
on:
4
- pull_request:
5
schedule:
6
- cron: "0 6 * * *" # daily at 06:00 UTC
7
workflow_dispatch:
@@ -77,7 +76,7 @@ jobs:
77
76
const versions = await github.paginate(listFn, listParams);
78
core.info(`Found ${versions.length} versions`);
79
80
- const hashRegex = /^[0-9a-f]{40}$/i;
+ const hashRegex = /^[0-9a-f]{7,64}$/i;
81
let deleted = 0;
82
for (const version of versions) {
83
const created = new Date(version.created_at).getTime();
0 commit comments