add runner OS in cache key (#220)

This commit is contained in:
Rano | Ranadeep
2024-12-09 22:32:01 +01:00
committed by GitHub
parent c00f3025ca
commit 9a2e0d3212
3 changed files with 10 additions and 0 deletions

View File

@@ -71,6 +71,10 @@ export class CacheConfig {
}
}
// Add runner OS to the key to avoid cross-contamination of cache
const runnerOS = os.type();
key += `-${runnerOS}`;
self.keyPrefix = key;
// Construct environment portion of the key: