fix: cache-hit output

pull/1404/head
Ryo Mimura
parent 0c45773b62
commit 688d5d4688

@ -86,7 +86,8 @@ test("restore with no cache found", async () => {
);
expect(outputMock).toHaveBeenCalledWith("cache-primary-key", key);
expect(outputMock).toHaveBeenCalledTimes(1);
expect(outputMock).toHaveBeenCalledWith("cache-hit", "false");
expect(outputMock).toHaveBeenCalledTimes(2);
expect(failedMock).toHaveBeenCalledTimes(0);
expect(infoMock).toHaveBeenCalledWith(

@ -59422,6 +59422,7 @@ function restoreImpl(stateProvider, earlyExit) {
primaryKey,
...restoreKeys
].join(", ")}`);
core.setOutput(constants_1.Outputs.CacheHit, false.toString());
return;
}
// Store the matched cache key in states

@ -59422,6 +59422,7 @@ function restoreImpl(stateProvider, earlyExit) {
primaryKey,
...restoreKeys
].join(", ")}`);
core.setOutput(constants_1.Outputs.CacheHit, false.toString());
return;
}
// Store the matched cache key in states

@ -62,7 +62,7 @@ export async function restoreImpl(
...restoreKeys
].join(", ")}`
);
core.setOutput(Outputs.CacheHit, false.toString());
return;
}

Loading…
Cancel
Save