From 349881b966abdaa4fc4cf48a87cd47e9eabf50f5 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 02:03:41 +0900 Subject: [PATCH] add: hugoPath --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1895428..8ab6369 100644 --- a/index.js +++ b/index.js @@ -41,10 +41,12 @@ async function run() { const hugoURL = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/${hugoName}.tar.gz`; core.debug('hugoURL:', hugoURL); + const hugoPath = '/github/home/bin'; + await io.mkdirP(hugoPath); const hugoTarball = await tc.downloadTool(hugoURL); const hugoExtractedFolder = await tc.extractTar(hugoTarball, '/tmp'); core.debug('hugoExtractedFolder:', hugoExtractedFolder); - await io.mv(`${hugoExtractedFolder}/hugo`, '/usr/local/bin/'); + await io.mv(`${hugoExtractedFolder}/hugo`, hugoPath); } catch (error) { core.setFailed(error.message);