Skip to content

Commit f9bc240

Browse files
committed
Merge branch 'master' into ci/tests_refactor
2 parents 5d1a8a0 + fc84d21 commit f9bc240

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,29 @@ jobs:
129129
130130
console.log(`PR: ${pr}, SHA: ${sha}`);
131131
132+
await github.paginate(github.rest.actions.getActionsCacheList, {
133+
owner: context.repo.owner,
134+
repo: context.repo.repo,
135+
per_page: 100,
136+
sort: 'created_at',
137+
direction: 'asc',
138+
key: 'tests-'
139+
}).then(caches => {
140+
console.log(caches.data.actions_caches.map(cache => cache.key));
141+
});
142+
143+
/*
132144
do {
133145
// Fetch all cache entries for the repository
134-
caches = await github.rest.actions.getActionsCacheList({
146+
caches = await github.paginate(github.rest.actions.getActionsCacheList, {
135147
owner: context.repo.owner,
136148
repo: context.repo.repo,
137149
per_page: 100,
138150
sort: 'created_at',
139151
direction: 'asc',
140152
key: 'tests-'
141153
});
154+
} while(caches?.data?.actions_caches?.length > 0);
142155
143156
console.log(caches.data.actions_caches.map(cache => cache.key));
144157
@@ -161,3 +174,4 @@ jobs:
161174
await sleep(30000); // Sleep for 30 seconds to avoid rate limiting
162175
}
163176
} while(caches?.data?.actions_caches?.length > 0);
177+
*/

0 commit comments

Comments
 (0)