Skip to content

Commit c4355f6

Browse files
committed
fix stabe release repository
1 parent 33f4b2f commit c4355f6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Taskfile.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ vars:
77
CSS_OUTPUT: ui/static/output.css
88
VERSION:
99
sh: |
10-
if git describe --tags --exact-match HEAD 2>/dev/null; then
11-
:
10+
EXACT=$(git tag --points-at HEAD 2>/dev/null | grep -E '^v[0-9]' | sort -V | tail -1)
11+
if [ -n "${EXACT}" ]; then
12+
echo "${EXACT}"
1213
else
1314
BASE_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "dev")
1415
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null || echo "")

0 commit comments

Comments
 (0)