From 3b6d607d982f418ca34981a175d0705139021b09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Mon, 23 Oct 2023 18:05:17 +0200 Subject: [PATCH] Fix stable/beta ghaction workflows --- .github/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/build.sh b/.github/build.sh index ff1384cbf..1d9305388 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -245,9 +245,10 @@ if [[ $RELEASE_TYPE == stable ]]; then stable_or_beta=yes fi if [[ $stable_or_beta == yes ]]; then - meson_configure+=$'\t'-Ddisplay_version_major=$(echo $RELEASE_NAME | cut -d '.' -f 1) - meson_configure+=$'\t'-Ddisplay_version_minor=$(echo $RELEASE_NAME | cut -d '.' -f 2) - meson_configure+=$'\t'-Dbuild_num=$(echo $RELEASE_NAME | cut -d '.' -f 3) + xyz=$(echo $RELEASE_NAME | cut -d 'v' -f 2 | cut -d 'b' -f 1) # $RELEASE_NAME is vX.Y.Z or vX.Y.Zb + meson_configure+=$'\t'-Ddisplay_version_major=$(echo $xyz | cut -d '.' -f 1) + meson_configure+=$'\t'-Ddisplay_version_minor=$(echo $xyz | cut -d '.' -f 2) + meson_configure+=$'\t'-Dbuild_num=$(echo $xyz | cut -d '.' -f 3) fi if [[ $RELEASE_TYPE == snapshot ]]; then meson_configure+=$'\t'-Dsnapshot=true