Skip to content

Commit

Permalink
add runner OS in cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Nov 29, 2024
1 parent c00f302 commit e89acd5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e89acd5

Please sign in to comment.