Skip to content

Commit 1dac4fe

Browse files
author
Bryan Clark
committed
Use $HOME directory
1 parent 7970453 commit 1dac4fe

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/auth.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export async function configAuthentication(
1616
console.log(
1717
`creating ${SETTINGS_FILE} with server-id: ${id}, username: ${username}, and a password`
1818
);
19-
const home: string = process.env['GITHUB_WORKSPACE'] || os.homedir();
20-
const directory: string = path.join(home, M2_DIR);
19+
const directory: string = path.join(os.homedir(), M2_DIR);
2120
await io.mkdirP(directory);
2221
core.debug(`created directory ${directory}`);
2322
await write(directory, generate(id, username, password));

0 commit comments

Comments
 (0)