Fix cache restore bug in gh issue #1377 by fixing paths (#15)

This commit is contained in:
Dev 2023-12-22 01:51:34 -05:00 committed by GitHub
parent 7d69ef2398
commit 9b747acaaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@ export async function restoreImpl(
const lookupOnly = utils.getInputAsBool(Inputs.LookupOnly);
const cacheKey = await cache.restoreCache(
cachePaths,
cachePaths.slice(),
primaryKey,
restoreKeys,
{ lookupOnly: lookupOnly },

View file

@ -59,7 +59,7 @@ async function saveImpl(stateProvider: IStateProvider): Promise<number | void> {
);
cacheId = await cache.saveCache(
cachePaths,
cachePaths.slice(),
primaryKey,
{ uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize) },
enableCrossOsArchive,