Skip to content

Commit

Permalink
Create getversion.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Jul 15, 2024
1 parent a7f0d6b commit 14d6b9f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions javascript/getversion.js
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 14d6b9f

Please sign in to comment.