From ef7e436aa553a3ae93a083daf1ede7f0add3b8e7 Mon Sep 17 00:00:00 2001 From: Kim Pepper Date: Fri, 15 Mar 2024 10:14:21 +1100 Subject: [PATCH] Use github ref name for version --- .github/workflows/deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1ede776..c7300f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -72,6 +72,9 @@ jobs: elif [ -n "${{ inputs.version_from_env }}" ]; then version=$(skpr info ${{ inputs.version_from_env }} | jq -r ".Version") echo "::notice:: Using version $version from ${{ inputs.version_from_env }} env" + elif [ "${{ github.ref_type}}" == "tag" ]; then + version=${{ github.ref_name }} + echo "::notice:: Using version $version from github.ref_name context" else version=$(git describe --tags --always) echo "::notice:: Using version $version from git describe"