From d8ad8f12f8bca1e8de96f5d7163f71997d487218 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Fri, 13 May 2022 02:12:53 +0200 Subject: [PATCH] Strip rc suffix from version number properly (#268) Previously the digit of the rc as well as the dash would remain E.g.: `-rc2` -> `-2` This resulted in it being subtracted from the patch version digit E.g.: `v1.7.0-rc1` turns into `1,7,0-1`. This commit strips the whole `-rcX` part of the version number in CI Closes #265 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29f24af..5fa6dbd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,7 +35,7 @@ jobs: working-directory: northstar-launcher run: | sed -i 's/DEV/${{ env.NORTHSTAR_VERSION }}/g' LauncherInjector/resources.rc - FILEVERSION=$(echo ${{ env.NORTHSTAR_VERSION }} | tr '.' ',' | tr -d '[:alpha:]') + FILEVERSION=$(echo ${{ env.NORTHSTAR_VERSION }} | tr '.' ',' | sed -E 's/-rc[0-9]+//' | tr -d '[:alpha:]') sed -i "s/0,0,0,1/${FILEVERSION}/g" NorthstarDedicatedTest/ns_version.h - name: Build working-directory: northstar-launcher