Skip to content

Commit

Permalink
Read commit hash from environment if available.
Browse files Browse the repository at this point in the history
When a commit hash is provided via GitHub's build action environment
variable it's concatinated to the version string rendered to web pages.
  • Loading branch information
shocau committed Jun 18, 2024
1 parent b0adaa3 commit a37146c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ module.exports = async function (env) {
const elkWorkerPath8 = 'node_modules/elkjs-8/lib/elk-worker.min.js';
const elkWorkerPathLatest = 'node_modules/elkjs-latest/lib/elk-worker.min.js';
const elkWorkerPathNext = 'node_modules/elkjs-next/lib/elk-worker.min.js';
const currentVersion = package.version;
currentVersion = package.version;
if (process.env.GITHUB_SHA) {
currentVersion += '-' + process.env.GITHUB_SHA;
}
console.log("Building ELK-Graph Web version " + currentVersion);

const javaElkVersions = [ 'snapshot' ]; // latest snapshot/nightly at the time of building
// Query released ELK versions using maven's REST API
Expand Down

0 comments on commit a37146c

Please sign in to comment.