mirror of
https://github.com/actions/setup-java.git
synced 2024-11-06 09:05:46 -05:00
Use $HOME directory
This commit is contained in:
parent
797045350f
commit
1dac4fef05
1 changed files with 1 additions and 2 deletions
|
@ -16,8 +16,7 @@ export async function configAuthentication(
|
||||||
console.log(
|
console.log(
|
||||||
`creating ${SETTINGS_FILE} with server-id: ${id}, username: ${username}, and a password`
|
`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(os.homedir(), M2_DIR);
|
||||||
const directory: string = path.join(home, M2_DIR);
|
|
||||||
await io.mkdirP(directory);
|
await io.mkdirP(directory);
|
||||||
core.debug(`created directory ${directory}`);
|
core.debug(`created directory ${directory}`);
|
||||||
await write(directory, generate(id, username, password));
|
await write(directory, generate(id, username, password));
|
||||||
|
|
Loading…
Reference in a new issue