From ecf9213b3ee29db684c5227e1f3e3e16b821a565 Mon Sep 17 00:00:00 2001 From: Benjamin Vernoux Date: Tue, 31 Oct 2023 18:46:18 +0100 Subject: [PATCH] Update Build.yml --- .github/workflows/Build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 40ec2ce..d18ca24 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -23,7 +23,10 @@ jobs: - name: Get app version + timestamp id: id_version - run: echo "app_version=$(git describe --tags HEAD)-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT + shell: bash + run: | + app_major_minor_patch=`grep -oP '(?<=VERSION = )[0-9.]+' Makefile` + echo "app_version=$app_major_minor_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT - name: Build app shell: bash @@ -57,7 +60,10 @@ jobs: - name: Get app version + timestamp id: id_version - run: echo "app_version=$(git describe --tags HEAD)-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT + shell: bash + run: | + app_major_minor_patch=`grep -oP '(?<=VERSION = )[0-9.]+' Makefile` + echo "app_version=$app_major_minor_patch-${{steps.id_date.outputs.timestamp}}" >> $GITHUB_OUTPUT - name: Build app run: |