From 1dac4fef0556b71a2568cc210af66d63263c08bc Mon Sep 17 00:00:00 2001 From: Bryan Clark Date: Fri, 6 Dec 2019 14:25:41 -0500 Subject: [PATCH] Use $HOME directory --- src/auth.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 6068341..09a1f78 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -16,8 +16,7 @@ export async function configAuthentication( console.log( `creating ${SETTINGS_FILE} with server-id: ${id}, username: ${username}, and a password` ); - const home: string = process.env['GITHUB_WORKSPACE'] || os.homedir(); - const directory: string = path.join(home, M2_DIR); + const directory: string = path.join(os.homedir(), M2_DIR); await io.mkdirP(directory); core.debug(`created directory ${directory}`); await write(directory, generate(id, username, password));