From 1671d5c39449a320e1f8e83cd944b07c768b622f Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 01:45:15 +0900 Subject: [PATCH] fix: io.mv --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f10a7e8..61a49b2 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,7 @@ async function run() { const hugoTarball = await tc.downloadTool(hugoURL); const hugoExtractedFolder = await tc.extractTar(hugoTarball, '/tmp/hugo'); core.debug('hugoExtractedFolder:', hugoExtractedFolder); - await io.mv('/tmp/hugo/hugo', '/usr/local/bin/'); + await io.mv(`${hugoExtractedFolder}/hugo`, '/usr/local/bin/'); } catch (error) { core.setFailed(error.message);