Skip to content

Commit

Permalink
Merge pull request #4 from skpr/github-ref
Browse files Browse the repository at this point in the history
Use github ref name for version
  • Loading branch information
nickschuch authored Mar 14, 2024
2 parents 7bdde31 + ef7e436 commit 64633e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 64633e6

Please sign in to comment.