fix: io.mv

This commit is contained in:
peaceiris 2019-09-16 01:45:15 +09:00
parent 2f1bf01c45
commit 1671d5c394

View file

@ -43,7 +43,7 @@ async function run() {
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/hugo');
core.debug('hugoExtractedFolder:', hugoExtractedFolder); core.debug('hugoExtractedFolder:', hugoExtractedFolder);
await io.mv('/tmp/hugo/hugo', '/usr/local/bin/'); await io.mv(`${hugoExtractedFolder}/hugo`, '/usr/local/bin/');
} }
catch (error) { catch (error) {
core.setFailed(error.message); core.setFailed(error.message);