Skip to content
Snippets Groups Projects
Commit 09fc0a71 authored by lukas leufen's avatar lukas leufen
Browse files

use git describe with match flag

parent 0d598eb7
No related branches found
No related tags found
3 merge requests!435Release v2.1.0,!434Develop,!433use git describe with match flag
Pipeline #102209 passed
......@@ -11,9 +11,9 @@ version:
- leap
- zam347
- base
only:
- master
- tags
# only:
# - master
# - tags
script:
- chmod +x ./CI/update_badge.sh
- chmod +x ./CI/create_version_badge.sh
......
#!/bin/bash
VERSION="$(git describe master)"
VERSION="$(git describe --match v[0-9]*.[0-9]*.[0-9]* --abbrev=0)"
COLOR="blue"
BADGE_NAME="version"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment