fix xpath

This commit is contained in:
Slawomir Jaranowski
2019-10-01 23:03:44 +02:00
parent cb7cfb850b
commit 33ba027849
7 changed files with 19 additions and 6 deletions

View File

@ -66,6 +66,7 @@ function fillProperties(template) {
.select(`/settings/profiles/profile[id[contains(text(),"_properties_")]]/properties`, template)[0];
JSON.parse(properties).forEach((property) => {
for (const key in property) {
const keyXml = template.createElement(key);
keyXml.textContent = property[key];
@ -75,7 +76,7 @@ function fillProperties(template) {
}
function addSonatypeSnapshots(template) {
const val = core.getInput('sonatype-snapshots');
const val = core.getInput('sonatypeSnapshots');
if (val && val.toLocaleLowerCase() == 'true') {
activateProfile(template, '_sonatype-snapshots_')
}