From fa0b9e1f63b9ebb4de8b3eef4cb0cbb78596b5f8 Mon Sep 17 00:00:00 2001 From: Paul Kendall Date: Sun, 10 Sep 2023 15:59:32 +1200 Subject: [PATCH] Put git hash on the banner --- .github/workflows/web.yml | 2 ++ src/index.html | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 7d0195a..ad247a7 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -44,6 +44,8 @@ jobs: rm -f index.json VERSIONS=`echo $VERSIONS|sed 's/, //'` sed -i~ "s/\"@VERSIONS@\"/$VERSIONS/" ../main*.js + GITHASH=`git rev-parse --short HEAD` + sed -i~ "s/@GITHASH@/$GITHASH" ../index.html - name: Setup Pages if: ${{ github.ref == 'refs/heads/master' }} uses: actions/configure-pages@v1 diff --git a/src/index.html b/src/index.html index 612fd84..fcf4c3b 100644 --- a/src/index.html +++ b/src/index.html @@ -3,7 +3,7 @@ - ExpressLRS Flasher + ExpressLRS Web Flasher @@ -30,7 +30,10 @@ - ExpressLRS Flasher + ExpressLRS Web Flasher + + + Git: @GITHASH@