2
0
Fork 0
mirror of https://github.com/actions/cache.git synced 2025-04-01 10:56:35 +00:00

Update log statement

This commit is contained in:
Marc Mueller 2023-03-09 11:46:09 +01:00
parent 84097c0606
commit 1840896778
4 changed files with 4 additions and 4 deletions
__tests__
dist
restore-only
restore
src

View file

@ -397,7 +397,7 @@ test("restore with lookup-only set", async () => {
expect(setCacheHitOutputMock).toHaveBeenCalledWith("cache-hit", "true");
expect(infoMock).toHaveBeenCalledWith(
`Cache would have been restored from key: ${key}`
`Cache found and can be restored from key: ${key}`
);
expect(failedMock).toHaveBeenCalledTimes(0);
});

View file

@ -50521,7 +50521,7 @@ function restoreImpl(stateProvider) {
const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey);
core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString());
if (lookupOnly) {
core.info(`Cache would have been restored from key: ${cacheKey}`);
core.info(`Cache found and can be restored from key: ${cacheKey}`);
}
else {
core.info(`Cache restored from key: ${cacheKey}`);

View file

@ -50521,7 +50521,7 @@ function restoreImpl(stateProvider) {
const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey);
core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString());
if (lookupOnly) {
core.info(`Cache would have been restored from key: ${cacheKey}`);
core.info(`Cache found and can be restored from key: ${cacheKey}`);
}
else {
core.info(`Cache restored from key: ${cacheKey}`);

View file

@ -71,7 +71,7 @@ async function restoreImpl(
core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString());
if (lookupOnly) {
core.info(`Cache would have been restored from key: ${cacheKey}`);
core.info(`Cache found and can be restored from key: ${cacheKey}`);
} else {
core.info(`Cache restored from key: ${cacheKey}`);
}