diff --git a/workflow-steps/cache/main.ts b/workflow-steps/cache/main.ts index 9ceb864..a44683a 100644 --- a/workflow-steps/cache/main.ts +++ b/workflow-steps/cache/main.ts @@ -26,7 +26,7 @@ if (!inputKey || !inputPaths) { const paths = buildCachePaths(inputPaths, false); const stringifiedPaths = paths.join(','); -const key = hashKey(`${inputKey}|${stringifiedPaths}`); +const key = hashKey(`${inputKey}|"${stringifiedPaths}"`); const currentBranchKeys = [key].map((k) => `${currentBranch}-${k}`); const baseBranchKeys = baseBranch ? [key].map((k) => `${baseBranch}-${k}`) : []; diff --git a/workflow-steps/cache/output/main.js b/workflow-steps/cache/output/main.js index 04f8ed6..881cb28 100644 --- a/workflow-steps/cache/output/main.js +++ b/workflow-steps/cache/output/main.js @@ -6041,7 +6041,7 @@ if (!inputKey || !inputPaths) { } var paths = buildCachePaths(inputPaths, false); var stringifiedPaths = paths.join(","); -var key = hashKey(`${inputKey}|${stringifiedPaths}`); +var key = hashKey(`${inputKey}|"${stringifiedPaths}"`); var currentBranchKeys = [key].map((k) => `${currentBranch}-${k}`); var baseBranchKeys = baseBranch ? [key].map((k) => `${baseBranch}-${k}`) : []; cacheClient.restore(