fix: io.mv
This commit is contained in:
parent
2f1bf01c45
commit
1671d5c394
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue