fix: path to extract

This commit is contained in:
peaceiris 2019-09-16 01:53:34 +09:00
parent 0606233eb3
commit fddee393fc

View file

@ -42,7 +42,7 @@ async function run() {
core.debug('hugoURL:', hugoURL); core.debug('hugoURL:', hugoURL);
const hugoTarball = await tc.downloadTool(hugoURL); const hugoTarball = await tc.downloadTool(hugoURL);
const hugoExtractedFolder = await tc.extractTar(hugoTarball, '/tmp/hugo'); const hugoExtractedFolder = await tc.extractTar(hugoTarball, '/tmp');
core.debug('hugoExtractedFolder:', hugoExtractedFolder); core.debug('hugoExtractedFolder:', hugoExtractedFolder);
await io.mv(`${hugoExtractedFolder}/hugo`, '/usr/local/bin/'); await io.mv(`${hugoExtractedFolder}/hugo`, '/usr/local/bin/');
} }