File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -142,13 +142,13 @@ jobs:
142
142
if (caches.data) {
143
143
// Delete matching caches
144
144
for (const cache of matchingCaches) {
145
- if (cache.key.endsWith(sha)) {
145
+ if (cache.key.endsWith(sha) || (!pr && !cache.key.startsWith("tests-bin-")) ) {
146
146
console.log(`Skipping cache with key: ${cache.key}`);
147
147
continue;
148
- } else {
149
- console.log(`Deleting cache with key: ${cache.key}`);
150
148
}
151
149
150
+ console.log(`Deleting cache with key: ${cache.key}`);
151
+
152
152
/*
153
153
await github.rest.actions.deleteActionsCacheById({
154
154
owner: context.repo.owner,
@@ -158,5 +158,5 @@ jobs:
158
158
*/
159
159
}
160
160
await sleep(30000); // Sleep for 30 seconds to avoid rate limiting
161
- } while(caches?.data?.actions_caches?.length > 0);
162
- }
161
+ }
162
+ } while(caches?.data?.actions_caches?.length > 0);
You can’t perform that action at this time.
0 commit comments