Skip to content

Commit a724ffa

Browse files
committed
Fix
1 parent 96fa552 commit a724ffa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ jobs:
142142
if (caches.data) {
143143
// Delete matching caches
144144
for (const cache of matchingCaches) {
145-
if (cache.key.endsWith(sha)) {
145+
if (cache.key.endsWith(sha) || (!pr && !cache.key.startsWith("tests-bin-"))) {
146146
console.log(`Skipping cache with key: ${cache.key}`);
147147
continue;
148-
} else {
149-
console.log(`Deleting cache with key: ${cache.key}`);
150148
}
151149
150+
console.log(`Deleting cache with key: ${cache.key}`);
151+
152152
/*
153153
await github.rest.actions.deleteActionsCacheById({
154154
owner: context.repo.owner,
@@ -158,5 +158,5 @@ jobs:
158158
*/
159159
}
160160
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);

0 commit comments

Comments
 (0)