#
All checks were successful
FHIR IG CI/CD Pipeline with Version Persistence / build-ig (push) Successful in 5m43s
FHIR IG CI/CD Pipeline with Version Persistence / deploy (push) Successful in 10s

This commit is contained in:
2026-03-08 00:08:16 +06:00
parent 9968c28e5c
commit a5e39b94d3

View File

@@ -178,11 +178,26 @@ jobs:
<tbody>
'''
published_found = False
for entry in pkg_list['list']:
if entry.get('version') == 'current':
continue
def version_key(v):
try:
return tuple(int(x) for x in v.split('.'))
except:
return (0,)
published = [
e for e in pkg_list['list']
if e.get('version') and e.get('version') != "current"
]
# Sort versions descending (newest first)
published.sort(
key=lambda e: version_key(e.get("version", "0.0.0")),
reverse=True
)
published_found = False
for entry in published:
published_found = True
version = escape(entry.get('version', 'Unknown'))
date = escape(entry.get('date', 'N/A'))