Merge pull request #211 from Frassle/awaitmkdirp

await io.mkdirP
This commit is contained in:
Brian Cristante 2022-03-28 09:47:39 -04:00 committed by GitHub
commit a5865a93f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -2127,12 +2127,12 @@ function addBinToPath() {
if (!fs_1.default.existsSync(gp)) { if (!fs_1.default.existsSync(gp)) {
// some of the hosted images have go install but not profile dir // some of the hosted images have go install but not profile dir
core.debug(`creating ${gp}`); core.debug(`creating ${gp}`);
io.mkdirP(gp); yield io.mkdirP(gp);
} }
let bp = path_1.default.join(gp, 'bin'); let bp = path_1.default.join(gp, 'bin');
if (!fs_1.default.existsSync(bp)) { if (!fs_1.default.existsSync(bp)) {
core.debug(`creating ${bp}`); core.debug(`creating ${bp}`);
io.mkdirP(bp); yield io.mkdirP(bp);
} }
core.addPath(bp); core.addPath(bp);
added = true; added = true;

View File

@ -73,13 +73,13 @@ export async function addBinToPath(): Promise<boolean> {
if (!fs.existsSync(gp)) { if (!fs.existsSync(gp)) {
// some of the hosted images have go install but not profile dir // some of the hosted images have go install but not profile dir
core.debug(`creating ${gp}`); core.debug(`creating ${gp}`);
io.mkdirP(gp); await io.mkdirP(gp);
} }
let bp = path.join(gp, 'bin'); let bp = path.join(gp, 'bin');
if (!fs.existsSync(bp)) { if (!fs.existsSync(bp)) {
core.debug(`creating ${bp}`); core.debug(`creating ${bp}`);
io.mkdirP(bp); await io.mkdirP(bp);
} }
core.addPath(bp); core.addPath(bp);