Skip to content

Commit

Permalink
fix local cache
Browse files Browse the repository at this point in the history
  • Loading branch information
raftario committed Oct 13, 2023
1 parent 41ea408 commit 74d24a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/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/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function getNdk(version: string, options: Options) {
if (options.localCache) {
core.info("Adding to the local cache...")
await mkdir(cacheDir, { recursive: true })
await cp(`${installPath}/*`, cacheDir, { recursive: true })
await cp(installPath, cacheDir, { recursive: true })
await cache.saveCache([cacheDir], cacheKey)
installPath = cacheDir
}
Expand Down

0 comments on commit 74d24a8

Please sign in to comment.