diff --git a/action.yml b/action.yml index 05c15ca..e738d21 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ outputs: cache-hit: description: 'A boolean value to indicate if cache was found and restored' runs: - using: 'node16' + using: 'node20' main: 'dist/main.js' post: 'dist/post.js' post-if: success() diff --git a/src/main.ts b/src/main.ts index 32dca16..50f1fbd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,7 +15,7 @@ async function main(): Promise { switch (options.strategy) { case 'copy-immutable': case 'copy': - await cp(cachePath, targetPath, { + await cp(cachePath, targetDir, { copySourceDirectory: false, recursive: true, })