Skip to content

Commit 16f5417

Browse files
committed
VITE_REVISION
1 parent 58023e5 commit 16f5417

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ui.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,7 @@ jobs:
3737
working-directory: './ui'
3838
- run: npm run build
3939
working-directory: './ui'
40+
env:
41+
VITE_REVISION: '${{ github.sha }}.gh${{ github.run_number }}'
4042
- run: bundle exec ruby deploy.rb signage-prd-pub
4143
working-directory: './ui'

ui/src/KioskHeartbeat.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ function sendHeartbeat(
8484
from: ctx.identityId,
8585
nonce: ulid(now.toDate().getTime()),
8686
ts: now.unix(),
87-
revision: "TODO--05161342",
87+
revision:
88+
import.meta.env.VITE_REVISION || "VITE_REVISION_missing--05161342",
8889
booted_at: bootedAt.unix(),
8990
path: `${location.pathname}${location.search}`,
9091
};

0 commit comments

Comments
 (0)