Skip to content

Commit

Permalink
Put git hash on the banner
Browse files Browse the repository at this point in the history
  • Loading branch information
pkendall64 committed Sep 10, 2023
1 parent b480fdc commit fa0b9e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8" />
<title>ExpressLRS Flasher</title>
<title>ExpressLRS Web Flasher</title>
<link rel="icon" href="favicon.ico" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"
type="text/css" />
Expand All @@ -30,7 +30,10 @@
</svg>
</td>
<td class="mui--align-middle mui--text-center mui--text-display3">
<b>ExpressLRS Flasher</b>
<b>ExpressLRS Web Flasher</b>
</td>
<td class="mui--align-bottom mui--text-right mui--text-caption">
Git: @GITHASH@
</td>
</tr>
</table>
Expand Down

0 comments on commit fa0b9e1

Please sign in to comment.