mirror of
https://github.com/s4u/maven-settings-action.git
synced 2026-02-12 00:05:49 +08:00
Add path argument so we can customize where settings.xml will be stored
This commit is contained in:
committed by
Slawomir Jaranowski
parent
99450b69de
commit
654e1efa2a
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user