Commit 575619e8 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

Merge branch 'tagfix' into 'master'

CI: fix xheck_tag to be compatible with Amber

See merge request !428
parents 2a11bce9 630cfc8e
Pipeline #63598 passed with stages
in 20 minutes and 46 seconds
...@@ -5,6 +5,7 @@ Feed it the first changelog line, and then all available tags. ...@@ -5,6 +5,7 @@ Feed it the first changelog line, and then all available tags.
""" """
import re, sys import re, sys
tag = "v" + re.findall("\\((.*)\\)", input())[0] version = re.findall("\\((.*)\\)", input())[0]
tag = 'v' + re.findall("([0-9]+\\.[0-9]+\\.[0-9]+).*", version)[0]
if tag not in map(str.strip, sys.stdin.readlines()): if tag not in map(str.strip, sys.stdin.readlines()):
raise Exception("Changelog's current version doesn't have a tag. Push the tag!") raise Exception("Changelog's current version doesn't have a tag. Push the tag!")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment