Skip to content

Commit

Permalink
Remove duplicate message on local cache miss (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Jul 4, 2024
1 parent 8cb6833 commit 128f1f6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 23 deletions.
12 changes: 5 additions & 7 deletions dist/save-cache/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/save-cache/index.js.map

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions dist/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions src/restore-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,10 @@ async function restoreCacheLocal(
primaryKey: string
): Promise<string | undefined> {
const storedCache = `${cacheLocalStoragePath}/${primaryKey}`
if (!(await exists(storedCache))) {
core.info(`Local cache is not found: ${storedCache}`)
return
if (await exists(storedCache)) {
await cp(`${storedCache}/.venv`, venvPath, {
recursive: true
})
return primaryKey
}
await cp(`${storedCache}/.venv`, venvPath, {
recursive: true
})
return primaryKey
}

0 comments on commit 128f1f6

Please sign in to comment.