diff --git a/javascript/getversion.js b/javascript/getversion.js new file mode 100644 index 0000000..808d6cf --- /dev/null +++ b/javascript/getversion.js @@ -0,0 +1,8 @@ +const fs = require('fs'); + +var xmldoc=document.implementation.createDocument('','',null); +xmldoc.async=false; +xmldoc.load('../pom.xml'); +var version = xmldoc.getElementsByName("version")[0]; +console.info("DodoOpenJavaVersion=" + version.textContent) +fs.writeFileSync(process.env.GITHUB_OUTPUT, 'version=' + version.textContent); \ No newline at end of file