1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-03 14:34:57 -04:00

Cache version numbers, so they can be used in other scripts

This commit is contained in:
Jon Beniston
2023-09-24 14:55:56 +01:00
parent ad7c08d05c
commit 9a6ade37d9
3 changed files with 9 additions and 4 deletions
+7 -2
View File
@@ -43,7 +43,11 @@ jobs:
echo github.workspace: ${{ github.workspace }}
- name: Get version
id: get_version
run: echo "version=$(git describe --tags | cut -c2-)" >> $env:GITHUB_OUTPUT
run: echo "version=$(grep sdrangel_VERSION CMakeCache.txt | cut -d "=" -f2)" >> $env:GITHUB_OUTPUT
#run: echo "version=$(git describe --tags | cut -c2-)" >> $env:GITHUB_OUTPUT
- name: Diplay version
run:
echo ${{ steps.get_version.outputs.version }}
- name: Install basic dependencies on Windows
if: startsWith(matrix.config.os, 'windows')
run: |
@@ -107,7 +111,8 @@ jobs:
# Need with clause so git describe --tags works
- name: Get version
id: get_version
run: echo "version=$(git describe --tags | cut -c2-)" >> $GITHUB_OUTPUT
run: echo "version=$(grep CPACK_PACKAGE_FILE_NAME CMakeCache.txt | cut -d "=" -f2)" >> $GITHUB_OUTPUT
#
# 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