Fix checking current version since semantic versioning adoption (v7.0.0)
All checks were successful
Run tests / test-precommit (push) Successful in 1m2s
All checks were successful
Run tests / test-precommit (push) Successful in 1m2s
This commit is contained in:
parent
50fa7c3bf5
commit
27a7385bed
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ EXCEPTION = None
|
||||||
try:
|
try:
|
||||||
OUTPUT = subprocess.check_output(cmd) # nosec
|
OUTPUT = subprocess.check_output(cmd) # nosec
|
||||||
logging.debug("Output:\n%s", OUTPUT)
|
logging.debug("Output:\n%s", OUTPUT)
|
||||||
m = re.search("version ([^ ]+) built", OUTPUT.decode("utf8", errors="ignore"))
|
m = re.search(r"version ([^ ]+)(\+gitea-| built)", OUTPUT.decode("utf8", errors="ignore"))
|
||||||
if m:
|
if m:
|
||||||
CURRENT = m.group(1)
|
CURRENT = m.group(1)
|
||||||
except Exception as err: # pylint: disable=broad-except
|
except Exception as err: # pylint: disable=broad-except
|
||||||
|
|
Loading…
Reference in a new issue