diff --git a/dist/index.js b/dist/index.js index 2ba50c0..514369a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3916,8 +3916,8 @@ async function main() { }); const dirName = `rclone-v${version}-${platform}`; const downloadPath = await import_tool_cache.default.downloadTool(rendered); - await (0, import_tool_cache.extractZip)(downloadPath); - const extractedPath = import_path.default.join(FILENAME); + const extractPath = await (0, import_tool_cache.extractZip)(downloadPath); + const extractedPath = import_path.default.join(extractPath, dirName, FILENAME); toolPath = await import_tool_cache.default.cacheFile(extractedPath, FILENAME, FILENAME, version); } (0, import_core.debug)("toolpath:" + toolPath); diff --git a/index.ts b/index.ts index f0d20ba..3b56de2 100644 --- a/index.ts +++ b/index.ts @@ -31,9 +31,9 @@ async function main() { const dirName = `rclone-v${version}-${platform}`; const downloadPath = await cache.downloadTool(rendered); - await extractZip(downloadPath); + const extractPath = await extractZip(downloadPath); - const extractedPath = path.join(FILENAME); + const extractedPath = path.join(extractPath, dirName, FILENAME); toolPath = await cache.cacheFile( extractedPath,