refactor: Add process.env.HOME
This commit is contained in:
parent
624c2a083b
commit
92191aa8c6
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
|
@ -29,7 +29,7 @@ async function run() {
|
||||||
const hugoURL = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/${hugoName}.tar.gz`;
|
const hugoURL = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/${hugoName}.tar.gz`;
|
||||||
core.debug(`hugoURL: ${hugoURL}`);
|
core.debug(`hugoURL: ${hugoURL}`);
|
||||||
|
|
||||||
const hugoPath = "/home/runner/bin";
|
const hugoPath = `${process.env.HOME}/bin`;
|
||||||
await io.mkdirP(hugoPath);
|
await io.mkdirP(hugoPath);
|
||||||
core.addPath(hugoPath);
|
core.addPath(hugoPath);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue