Add path argument so we can customize where settings.xml will be stored

This commit is contained in:
Piotr Kruk
2022-02-03 13:44:29 +01:00
committed by Slawomir Jaranowski
parent 99450b69de
commit 654e1efa2a
4 changed files with 27 additions and 1 deletions

View File

@ -30,7 +30,12 @@ const DOMParser = require('@xmldom/xmldom').DOMParser;
const XMLSerializer = require('@xmldom/xmldom').XMLSerializer;
function getSettingsPath() {
return path.join(os.homedir(), '.m2', 'settings.xml');
const _path = core.getInput('path');
if (!_path) {
return path.join(os.homedir(), '.m2', 'settings.xml');
} else {
return _path;
}
}
function getTemplate(templateName) {