From 54ec613ede244a974e36963a9e07aea380882f4e Mon Sep 17 00:00:00 2001 From: lgpilot Date: Thu, 8 Feb 2024 15:26:14 +0100 Subject: [PATCH] add build version to html comment --- src/_data/build.js | 5 +++++ src/index.njk | 1 + 2 files changed, 6 insertions(+) create mode 100644 src/_data/build.js diff --git a/src/_data/build.js b/src/_data/build.js new file mode 100644 index 0000000..a742bb4 --- /dev/null +++ b/src/_data/build.js @@ -0,0 +1,5 @@ +module.exports = function() { + return { + git_reference: process.env.GITHUB_REF_NAME || "missing" + }; +}; \ No newline at end of file diff --git a/src/index.njk b/src/index.njk index d1ef13d..bebf31a 100644 --- a/src/index.njk +++ b/src/index.njk @@ -1,3 +1,4 @@ +