Fix cache with @actions/cache

This commit is contained in:
MSP-Greg
2023-05-20 15:09:49 +02:00
committed by Benoit Daloze
parent 7d546f4868
commit 92a3389c13
4 changed files with 452 additions and 189 deletions
+2 -1
View File
@@ -191,7 +191,8 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
// restore cache & install
let cachedKey = null
try {
cachedKey = await cache.restoreCache(paths, key, restoreKeys)
// .slice() to workaround https://github.com/actions/toolkit/issues/1377
cachedKey = await cache.restoreCache(paths.slice(), key, restoreKeys)
} catch (error) {
if (error.name === cache.ValidationError.name) {
throw error;