From b9da4850da0791194c0d155fd7fafbf2fd111c03 Mon Sep 17 00:00:00 2001 From: Christopher Lowenthal Date: Mon, 31 Oct 2022 16:47:53 -0400 Subject: [PATCH] sets github output 'version' variable --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23f58008d..a3ddbd780 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,11 +13,12 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + - run: echo $(git describe --tags) - run: | current=$(git describe --tags | grep -Eo '[0-9]*?\.[0-9]*?\.[0-9]*') array=($(echo $current | tr '.' '\n')) array[2]=$((array[2]+1)) - echo $(IFS="." ; echo "${array[*]}") + echo "version=$(IFS="." ; echo "${array[*]}")" >> $GITHUB_OUTPUT build-lattice: runs-on: ubuntu-latest