From e066abe9931393fd18a23d2973a82a0b16f66dd4 Mon Sep 17 00:00:00 2001 From: albaintor <118518828+albaintor@users.noreply.github.com> Date: Sun, 1 Dec 2024 12:46:00 +0100 Subject: [PATCH] Fixed github build --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ffcc4b4..c57c154 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,8 @@ jobs: - name: Fetch all tags to determine version run: | git fetch origin +refs/tags/*:refs/tags/* - echo "VERSION=$(git describe --match "v[0-9]*" --tags HEAD --always)" >> $GITHUB_ENV + echo VERSION="v$(jq .version -r driver.json)" >> $GITHUB_ENV + # echo "VERSION=$(git describe --match "v[0-9]*" --tags HEAD --always)" >> $GITHUB_ENV - name: Verify driver.json version for release build if: contains(github.ref, 'tags/v') @@ -58,9 +59,11 @@ jobs: - name: Add version run: | + DRIVER_VERSION="v$(jq .version -r driver.json)" mkdir -p artifacts/bin cd artifacts - echo ${{ env.VERSION }} > version.txt + # echo ${{ env.VERSION }} > version.txt + echo $DRIVER_VERSION > version.txt - name: Prepare artifacts shell: bash