1
0
Fork 0
mirror of synced 2024-05-24 22:40:00 +12:00

Fix version regex

This commit is contained in:
lennard 2023-03-19 22:19:59 +01:00
parent 639d785bf1
commit 8a0d2b839e
No known key found for this signature in database
GPG key ID: AB6010FE63C7C2B1

View file

@ -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 -h | grep -oE "(^[0-9]+\.[0-9]+(.[0-9]+)?)$" | tail -1)
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=sha_short::$(git rev-parse --short HEAD)"