mirror of
https://github.com/jalad25/Okudagram.git
synced 2026-07-22 04:40:28 +00:00
Update theme-badges.yml
Update badge workflow with removal of percentage score by Obsidian
This commit is contained in:
parent
da4e3db8f9
commit
56534dabe7
1 changed files with 1 additions and 3 deletions
4
.github/workflows/theme-badges.yml
vendored
4
.github/workflows/theme-badges.yml
vendored
|
|
@ -33,11 +33,9 @@ jobs:
|
|||
# Scorecard fields (Health / Review / percentage)
|
||||
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 "?"
|
||||
|
||||
# Downloads count (e.g. "370k downloads", "1.2k downloads", "5M downloads")
|
||||
dl = re.search(r'([\d.]+[KkMm]?)\s*downloads?', html)
|
||||
|
|
@ -55,7 +53,7 @@ jobs:
|
|||
scorecard = {
|
||||
"schemaVersion": 1,
|
||||
"label": "Obsidian Scorecard",
|
||||
"message": f"{pct_v}% • {health_v} • {review_v}",
|
||||
"message": f"{health_v} • {review_v}",
|
||||
"color": color,
|
||||
"namedLogo": "obsidian",
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue