From b3beb1ac2d67ee14e3ec604b2e06066df2cce3e0 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 5 Dec 2024 22:50:15 +0100 Subject: [PATCH] Fix version_code conflict for nightly and release --- .github/workflows/Build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index dc145028..79cbc9d9 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -228,7 +228,11 @@ jobs: if [ ${{ matrix.buildtype }} = 'Oculus' ] then SUFFIX="" - VERSION_CODE=$(git rev-list --count HEAD) + VERSION_CODE=$(( 2 * $(git rev-list --count HEAD) )) + if [ ${{ github.ref_type }} = 'tag' ] + then + VERSION_CODE=$(( $VERSION_CODE + 1 )) + fi CSS=images/wivrn-release.css APPNAME=WiVRn