mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-27 23:47:39 +01:00
CI: changelog in md was incorrect in release notes
This commit is contained in:
@@ -152,11 +152,14 @@ def generate_release_notes(last_successful, tag, branch):
|
|||||||
|
|
||||||
def ref_display(ref):
|
def ref_display(ref):
|
||||||
try:
|
try:
|
||||||
tag = run(f'git describe --tags --exact-match "{ref}" 2>/dev/null || true')
|
tag = run(f'git describe --tags --exact-match "{ref}" 2>/dev/null || true').strip()
|
||||||
if tag:
|
|
||||||
|
# allow only semantic version tags: X.Y.Z
|
||||||
|
if re.fullmatch(r'\d+\.\d+\.\d+', tag):
|
||||||
return tag
|
return tag
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return ref[:8]
|
return ref[:8]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user