From ad7c08d05c176f543adba2bd87daa10042cc9b77 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Sun, 24 Sep 2023 10:26:41 +0100 Subject: [PATCH] Try to fix version number --- .github/workflows/sdrangel.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sdrangel.yml b/.github/workflows/sdrangel.yml index a50847450..7d8aae819 100644 --- a/.github/workflows/sdrangel.yml +++ b/.github/workflows/sdrangel.yml @@ -104,11 +104,13 @@ jobs: with: submodules: true fetch-depth: 0 - # Need with clause so git describe --tags works? + # Need with clause so git describe --tags works - name: Get version id: get_version run: echo "version=$(git describe --tags | cut -c2-)" >> $GITHUB_OUTPUT - # Requires git fetch --tags upstream to have been run! + # Requires git fetch --tags upstream to have been run on the branch! + # git remote add upstream https://github.com/f4exb/sdrangel.git + # git fetch --tags upstream - name: Get version 3 id: get_version3 run: echo "version=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT