diff --git a/dist/index.js b/dist/index.js index 7a7a59c..48ceb03 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2127,12 +2127,12 @@ function addBinToPath() { if (!fs_1.default.existsSync(gp)) { // some of the hosted images have go install but not profile dir core.debug(`creating ${gp}`); - io.mkdirP(gp); + yield io.mkdirP(gp); } let bp = path_1.default.join(gp, 'bin'); if (!fs_1.default.existsSync(bp)) { core.debug(`creating ${bp}`); - io.mkdirP(bp); + yield io.mkdirP(bp); } core.addPath(bp); added = true; diff --git a/src/main.ts b/src/main.ts index 4295858..34784c4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -73,13 +73,13 @@ export async function addBinToPath(): Promise { if (!fs.existsSync(gp)) { // some of the hosted images have go install but not profile dir core.debug(`creating ${gp}`); - io.mkdirP(gp); + await io.mkdirP(gp); } let bp = path.join(gp, 'bin'); if (!fs.existsSync(bp)) { core.debug(`creating ${bp}`); - io.mkdirP(bp); + await io.mkdirP(bp); } core.addPath(bp);