mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 04:12:17 +01:00
fix: path to extract
This commit is contained in:
2
index.js
2
index.js
@@ -42,7 +42,7 @@ async function run() {
|
||||
core.debug('hugoURL:', 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);
|
||||
await io.mv(`${hugoExtractedFolder}/hugo`, '/usr/local/bin/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user