Update scorecard-badge.yml

Update badge workflow with removal of percentage score by Obsidian
This commit is contained in:
Jalad 2026-06-15 22:16:44 -05:00 committed by GitHub
parent 9e2595c373
commit 24c7037f4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,11 +32,9 @@ jobs:
health = re.search(r'Health</span><span[^>]*>([^<]+)</span>', html)
review = re.search(r'Review</span><span[^>]*>([^<]+)</span>', html)
pct = re.search(r'tabular-nums"[^>]*>(\d{1,3})(?:<!--[^>]*-->)?%', html)
health_v = health.group(1).strip() if health else "unknown"
review_v = review.group(1).strip() if review else "unknown"
pct_v = pct.group(1) if pct else "?"
color = {
"Excellent": "brightgreen",
@ -49,7 +47,7 @@ jobs:
badge = {
"schemaVersion": 1,
"label": "Obsidian Scorecard",
"message": f"{pct_v}% • {health_v} • {review_v}",
"message": f"{health_v} • {review_v}",
"color": color,
"namedLogo": "obsidian",
}