From 0325b8eec3bca95a13735c9a91b4e6cc45ef841f Mon Sep 17 00:00:00 2001 From: Ari Date: Fri, 20 May 2022 13:45:23 -0400 Subject: [PATCH] trying to get a valid version --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6828c05..1aeeb8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,11 +16,17 @@ jobs: steps: - name: Check out repository uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: Get Version id: version shell: bash run: | - echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)-g$(echo ${{ github.sha }} | cut -c1-3) + echo ::set-output name=VERSION::$(git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g') + - name: ${{ steps.version.outputs.VERSION }} + shell: bash + run: / + echo ${{ steps.version.outputs.VERSION }} python: name: "Python Tests"