Fix version regex
This commit is contained in:
parent
639d785bf1
commit
8a0d2b839e
2
.github/workflows/release-tests.yml
vendored
2
.github/workflows/release-tests.yml
vendored
|
@ -22,7 +22,7 @@ jobs:
|
||||||
id: version
|
id: version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
tag_abbrev=$(git tag | sort -h | grep -oE "(^[0-9]+\.[0-9]+(.[0-9])?)$" | tail -1)
|
tag_abbrev=$(git tag | sort -h | grep -oE "(^[0-9]+\.[0-9]+(.[0-9]+)?)$" | tail -1)
|
||||||
echo "::set-output name=tag_abbrev::$tag_abbrev"
|
echo "::set-output name=tag_abbrev::$tag_abbrev"
|
||||||
echo "::set-output name=tag_offset::$(git rev-list $tag_abbrev..HEAD --count)"
|
echo "::set-output name=tag_offset::$(git rev-list $tag_abbrev..HEAD --count)"
|
||||||
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
||||||
|
|
Loading…
Reference in a new issue