Skip to content

Commit d4d32d7

Browse files
authored
Bugfix for PR cache cleanup (#585)
The PR cache cleanup script currently only pulls the top 30 cache keys to consider cleaning up. This updates it to pull all keys. Follow up from discussion on #569. Signed-off-by: Angela Burton <angelab@nvidia.com>
1 parent 9ad63e8 commit d4d32d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pr_cache_cleanup.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
pr_number=$(echo ${{ github.event.ref }} | sed 's/.*\///')
1919
2020
# Fetch the list of cache keys
21-
cache_keys=$(gh cache list --repo ${{ github.repository }} | cut -f 2)
21+
cache_keys=$(gh cache list --repo ${{ github.repository }} --limit 1000 | cut -f 2)
2222
2323
for key in $cache_keys
2424
do

0 commit comments

Comments
 (0)