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@