add build version to html comment

This commit is contained in:
lgpilot 2024-02-08 15:26:14 +01:00
parent 2a6fd3faff
commit 54ec613ede
2 changed files with 6 additions and 0 deletions

5
src/_data/build.js Normal file
View file

@ -0,0 +1,5 @@
module.exports = function() {
return {
git_reference: process.env.GITHUB_REF_NAME || "missing"
};
};

View file

@ -1,3 +1,4 @@
<!-- Version: {{ build.git_reference }} -->
<!DOCTYPE html>
<html>
<head>