Move to settings-path

This commit is contained in:
Bryan Clark
2019-12-10 13:02:21 -08:00
parent ae11e1a1b6
commit ce88feea94
5 changed files with 12 additions and 9 deletions

View File

@ -19,8 +19,8 @@ export async function configAuthentication(
// when an alternate m2 location is specified use only that location (no .m2 directory)
// otherwise use the home/.m2/ path
const directory: string = path.join(
core.getInput('m2-home') || os.homedir(),
core.getInput('m2-home') ? '' : M2_DIR
core.getInput('settings-path') || os.homedir(),
core.getInput('settings-path') ? '' : M2_DIR
);
await io.mkdirP(directory);
core.debug(`created directory ${directory}`);