Workflows: Fix tag sorting
This commit is contained in:
parent
e5a56cb0fb
commit
3a396d5982
2
.github/workflows/release-tests.yml
vendored
2
.github/workflows/release-tests.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
|||
id: version
|
||||
shell: bash
|
||||
run: |
|
||||
tag_abbrev=$(git tag | sort -h | grep -oE "(^[0-9]+\.[0-9]+(.[0-9]+)?)$" | tail -1)
|
||||
tag_abbrev=$(git tag --sort=v:refname | grep -oE "(^[0-9]+\.[0-9]+(.[0-9]+)?)$" | tail -1)
|
||||
echo "tag_abbrev=$tag_abbrev" >> $GITHUB_OUTPUT
|
||||
echo "tag_offset=$(git rev-list $tag_abbrev..HEAD --count)" >> $GITHUB_OUTPUT
|
||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
|
Loading…
Reference in a new issue