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

This commit is contained in:
Dev
2023-12-22 15:51:34 +09:00
committed by GitHub
parent 7d69ef2398
commit 9b747acaaa
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -100265,7 +100265,7 @@ function saveImpl(stateProvider) {
const s3BucketName = core.getInput(constants_1.Inputs.AWSS3Bucket);
const s3config = utils.getInputS3ClientConfig();
const enableCrossOsArchive = utils.getInputAsBool(constants_1.Inputs.EnableCrossOsArchive);
cacheId = yield cache.saveCache(cachePaths, primaryKey, { uploadChunkSize: utils.getInputAsInt(constants_1.Inputs.UploadChunkSize) }, enableCrossOsArchive, s3config, s3BucketName);
cacheId = yield cache.saveCache(cachePaths.slice(), primaryKey, { uploadChunkSize: utils.getInputAsInt(constants_1.Inputs.UploadChunkSize) }, enableCrossOsArchive, s3config, s3BucketName);
if (cacheId != -1) {
core.info(`Cache saved with key: ${primaryKey}`);
}