From b9f4b9b69e91e7b43d41538ea8246a0a8a302515 Mon Sep 17 00:00:00 2001 From: routerino <45954722+routerino@users.noreply.github.com> Date: Fri, 29 Jul 2022 15:49:23 +1000 Subject: [PATCH] Chore show version in settings (#7) * dynamically inject version * update publish-release --- .github/workflows/publish-release.yaml | 4 ++++ src/routes/settings.html.svelte | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index fe921a1..f0d497f 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -32,6 +32,10 @@ jobs: echo "::set-output name=TAG::$TAGS" echo "::set-output name=PRIMARY_TAG::$PRIMARY_TAG" + - name: Update Version in Code + run: | + sed -i 's/insert-version/${{ steps.gathervars.outputs.VERSION }}/g' ./src/routes/settings.html.svelte + - name: Log in to the Container registry uses: docker/login-action@v1 with: diff --git a/src/routes/settings.html.svelte b/src/routes/settings.html.svelte index ea7d0b4..332d364 100644 --- a/src/routes/settings.html.svelte +++ b/src/routes/settings.html.svelte @@ -23,6 +23,8 @@
+
+

Version

insert-version {/if}