diff --git a/dist/index.js b/dist/index.js index 2faece0..f5866e3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3906,7 +3906,7 @@ async function main() { } const platform = `${import_os.default.platform()}-${arch}`; let toolPath = import_tool_cache.default.find(FILENAME, version, arch); - if (!toolPath) { + if (!toolPath || true) { const context = { PLATFORM: platform, RCLONE_VERSION: version @@ -3916,8 +3916,8 @@ async function main() { }); const dirName = `rclone-v${version}-${platform}`; const downloadPath = await import_tool_cache.default.downloadTool(rendered); - const extractPath = await (0, import_tool_cache.extractZip)(downloadPath, "./"); - const extractedPath = import_path.default.join(dirName, 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 1dea7ba..21585f1 100644 --- a/index.ts +++ b/index.ts @@ -20,7 +20,7 @@ async function main() { const platform = `${os.platform()}-${arch}`; // Not tested with other than Linux let toolPath = cache.find(FILENAME, version, arch); - if (!toolPath) { + if (!toolPath || true) { const context: { [key: string]: string } = { PLATFORM: platform, RCLONE_VERSION: version, @@ -31,9 +31,9 @@ async function main() { const dirName = `rclone-v${version}-${platform}`; const downloadPath = await cache.downloadTool(rendered); - const extractPath = await extractZip(downloadPath, "./"); + const extractPath = await extractZip(downloadPath); - const extractedPath = path.join(dirName, FILENAME); + const extractedPath = path.join(extractPath, dirName, FILENAME); toolPath = await cache.cacheFile( extractedPath,