File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,29 @@ jobs:
129
129
130
130
console.log(`PR: ${pr}, SHA: ${sha}`);
131
131
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
+ /*
132
144
do {
133
145
// Fetch all cache entries for the repository
134
- caches = await github.rest.actions.getActionsCacheList( {
146
+ caches = await github.paginate(github. rest.actions.getActionsCacheList, {
135
147
owner: context.repo.owner,
136
148
repo: context.repo.repo,
137
149
per_page: 100,
138
150
sort: 'created_at',
139
151
direction: 'asc',
140
152
key: 'tests-'
141
153
});
154
+ } while(caches?.data?.actions_caches?.length > 0);
142
155
143
156
console.log(caches.data.actions_caches.map(cache => cache.key));
144
157
@@ -161,3 +174,4 @@ jobs:
161
174
await sleep(30000); // Sleep for 30 seconds to avoid rate limiting
162
175
}
163
176
} while(caches?.data?.actions_caches?.length > 0);
177
+ */
You can’t perform that action at this time.
0 commit comments