forked from Conjure-Tools/unity-runner
updated readme generator
This commit is contained in:
parent
d7981693da
commit
cd815e0663
@ -108,16 +108,15 @@ def main():
|
||||
tags.sort()
|
||||
|
||||
versions={}
|
||||
pattern = re.compile(r"(\w+)-(\d+\.\d+\.\d+\w*)-(\w+)?(-\w+)?-runner")
|
||||
|
||||
pattern = re.compile(r"(\w+)-(\d+\.\d+\.\d+\w*)(-[a-zA-Z-0-9]+)?-runner")
|
||||
for tag in tags:
|
||||
matches = pattern.match(tag)
|
||||
if matches:
|
||||
groups = matches.groups()
|
||||
version = groups[1]
|
||||
component = groups[2] if groups[2] else "all"
|
||||
if groups[3]: # If there is a variance, then apply it to the component
|
||||
component = f"{component} ({groups[3].strip('-')})"
|
||||
|
||||
component = component.strip('-')
|
||||
if version not in versions:
|
||||
versions[version] = {}
|
||||
versions[version][component] = tag
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user