From e89acd5884ee4a0d874ad235ba506b8e29499583 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Fri, 29 Nov 2024 16:36:14 +0100 Subject: [PATCH] add runner OS in cache key --- src/config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.ts b/src/config.ts index 15ca1cf..2c4897a 100644 --- a/src/config.ts +++ b/src/config.ts @@ -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: