From 2b18e4c73dfccda7452106a6fe1d1b629c350763 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Fri, 24 May 2024 20:09:07 -0400 Subject: [PATCH] fix(ui): ensure pre-releases are properly checked (#2564) --- .github/workflows/CI.yml | 6 +- src_assets/common/assets/web/index.html | 66 +++++++++---------- .../assets/web/public/assets/locale/en.json | 1 + .../common/assets/web/sunshine_version.js | 55 ++++++++++++++++ 4 files changed, 89 insertions(+), 39 deletions(-) create mode 100644 src_assets/common/assets/web/sunshine_version.js diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3f622759b6b..76717e3c1b0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -125,7 +125,7 @@ jobs: - name: Configure Flatpak Manifest run: | # variables for manifest - branch=${{ github.head_ref }} + branch="${{ github.head_ref }}" commit=${{ needs.setup_release.outputs.release_commit }} # check the branch variable @@ -505,7 +505,7 @@ jobs: - name: Configure formula run: | # variables for formula - branch=${{ github.head_ref }} + branch="${{ github.head_ref }}" commit=${{ needs.setup_release.outputs.release_commit }} # check the branch variable @@ -623,7 +623,7 @@ jobs: - name: Configure Portfile run: | # variables for Portfile - branch=${{ github.head_ref }} + branch="${{ github.head_ref }}" commit=${{ needs.setup_release.outputs.release_commit }} # check the branch variable diff --git a/src_assets/common/assets/web/index.html b/src_assets/common/assets/web/index.html index a5b5a6f1199..9aeb4e399b5 100644 --- a/src_assets/common/assets/web/index.html +++ b/src_assets/common/assets/web/index.html @@ -24,7 +24,7 @@
{{ $t('index.new_pre_release') }}
{{preReleaseVersion.name}}-
{{preReleaseVersion.body}}+
{{preReleaseVersion.release.name}}+
{{preReleaseVersion.release.body}}
{{ $t('index.new_stable') }}
{{githubVersion.body}}+
{{githubVersion.release.body}}