mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 12:12:55 +08:00
Fix cache misses
This commit is contained in:
parent
7640cf17c1
commit
e1b7e78d60
4
packages/cache/src/cache.ts
vendored
4
packages/cache/src/cache.ts
vendored
@ -254,10 +254,10 @@ export async function saveCache(
|
|||||||
console.debug(`Cache Service Version: ${CacheServiceVersion}`)
|
console.debug(`Cache Service Version: ${CacheServiceVersion}`)
|
||||||
switch (CacheServiceVersion) {
|
switch (CacheServiceVersion) {
|
||||||
case "v2":
|
case "v2":
|
||||||
return await saveCachev1(paths, key, options, enableCrossOsArchive)
|
return await saveCachev2(paths, key, options, enableCrossOsArchive)
|
||||||
case "v1":
|
case "v1":
|
||||||
default:
|
default:
|
||||||
return await saveCachev2(paths, key, options, enableCrossOsArchive)
|
return await saveCachev1(paths, key, options, enableCrossOsArchive)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user