Skip to content

Commit 92a3389

Browse files
MSP-Gregeregon
authored andcommittedMay 20, 2023
Fix cache with @actions/cache
1 parent 7d546f4 commit 92a3389

File tree

4 files changed

+452
-189
lines changed

4 files changed

+452
-189
lines changed
 

‎bundler.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ export async function bundleInstall(gemfile, lockFile, platform, engine, rubyVer
191191
// restore cache & install
192192
let cachedKey = null
193193
try {
194-
cachedKey = await cache.restoreCache(paths, key, restoreKeys)
194+
// .slice() to workaround https://github.com/actions/toolkit/issues/1377
195+
cachedKey = await cache.restoreCache(paths.slice(), key, restoreKeys)
195196
} catch (error) {
196197
if (error.name === cache.ValidationError.name) {
197198
throw error;

0 commit comments

Comments
 (0)
Please sign in to comment.