mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Don't try to upload cache if we have restored a cache with the same key
This commit is contained in:
Generated
+5
-1
@@ -91155,6 +91155,11 @@ async function uploadDependencyCaches(codeql, features, config, logger) {
|
||||
status.push({ language, result: "no-hash" /* NoHash */ });
|
||||
continue;
|
||||
}
|
||||
const key = await cacheKey2(codeql, features, language, patterns);
|
||||
if (config.dependencyCachingRestoredKeys.includes(key)) {
|
||||
status.push({ language, result: "duplicate" /* Duplicate */ });
|
||||
continue;
|
||||
}
|
||||
const size = await getTotalCacheSize(
|
||||
cacheConfig.getDependencyPaths(),
|
||||
logger,
|
||||
@@ -91167,7 +91172,6 @@ async function uploadDependencyCaches(codeql, features, config, logger) {
|
||||
);
|
||||
continue;
|
||||
}
|
||||
const key = await cacheKey2(codeql, features, language, patterns);
|
||||
logger.info(
|
||||
`Uploading cache of size ${size} for ${language} with key ${key}...`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user