Skip to content

Commit

Permalink
Update dist (#301)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
github-actions[bot] and web-flow authored Apr 28, 2022
1 parent 09331f5 commit 0cdf229
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/restore/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/restore/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/restore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,18 +171,18 @@ async function restoreCache(
}

if (!restoreKey) {
core.setOutput(cacheHitId, 'false');
core.setOutput(cacheHitId, 'false')
core.info(`${id} cache not found.`)
core.info(`${id} cache will be saved in post run job.`)
return
}

if (restoreKey === key) {
core.setOutput(cacheHitId, 'true');
core.setOutput(cacheHitId, 'true')
core.info(`${id} cache hit.`)
core.info(`${id} cache will not be saved in post run job.`)
} else {
core.setOutput(cacheHitId, 'false');
core.setOutput(cacheHitId, 'false')
core.info(`${id} cache miss, fell back on ${restoreKey}.`)
core.info(`${id} cache will be saved in post run job.`)
}
Expand Down

0 comments on commit 0cdf229

Please sign in to comment.