mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 04:12:17 +01:00
fix: io.mv
This commit is contained in:
2
index.js
2
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);
|
||||
|
||||
Reference in New Issue
Block a user