From 58a09ff0bdfc329ee2920869a5f4fa8169019847 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Fri, 24 Nov 2023 21:10:38 +0200 Subject: [PATCH] Set version to 999 on unstable builds to avoid triggering auto-update --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 35545536..7682b451 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -79,7 +79,7 @@ jobs: - name: Publish app run: > dotnet publish LightBulb - -p:Version=${{ github.ref_type == 'tag' && github.ref_name || '0.0.0' }} + -p:Version=${{ github.ref_type == 'tag' && github.ref_name || format('999.9.9-ci-{0}', github.sha) }} -p:CSharpier_Bypass=true --output LightBulb/bin/publish/ --configuration Release @@ -87,7 +87,7 @@ jobs: - name: Create installer shell: pwsh env: - INSTALLER_APP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0' }} + INSTALLER_APP_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || format('999.9.9-ci-{0}', github.sha) }} run: | choco install innosetup --no-progress Copy-Item -Path LightBulb/bin/publish/ -Recurse -Destination Installer/Source/