Skip to content

Commit

Permalink
Fixed github build
Browse files Browse the repository at this point in the history
  • Loading branch information
albaintor committed Dec 1, 2024
1 parent d2cf4d2 commit e066abe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e066abe

Please sign in to comment.