Skip to content

Commit

Permalink
removed tmp functiomality
Browse files Browse the repository at this point in the history
  • Loading branch information
mryzhov committed Mar 19, 2024
1 parent 9d307c5 commit 87e9523
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .github/actions/cache/dist/restore/index.js

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

16 changes: 8 additions & 8 deletions .github/actions/cache/src/restoreImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ async function restore() {
cacheFile = files[0]

// copy file to local fs
// if (!fs.existsSync(cacheLocalPath)) {
// fs.mkdirSync(cacheLocalPath)
// }
if (!fs.existsSync(cacheLocalPath)) {
fs.mkdirSync(cacheLocalPath)
}
fs.copyFileSync(
path.join(cacheRemotePath, cacheFile),
path.join(cacheLocalPath, cacheFile)
)
log(`${cacheFile} was copied to ${cacheLocalPath}/${cacheFile}`)

// extract
// tar.x({
// file: path.join(cacheLocalPath, cacheFile),
// cwd: cacheLocalPath,
// sync: true
// })
tar.x({
file: path.join(cacheLocalPath, cacheFile),
cwd: cacheLocalPath,
sync: true
})

core.setOutput('cache-file', cacheFile)
core.setOutput('cache-hit', true)
Expand Down

0 comments on commit 87e9523

Please sign in to comment.