You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Merge snapshot-badges workflow into CI workflow
- regenerate-badges job runs only after test job passes
- Only triggers on pushes to main (not PRs)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: MAINTAINERS.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,18 @@ The demo site uses pre-generated static SVG files rather than calling the live A
12
12
13
13
### Auto-regeneration
14
14
15
-
A GitHub workflow (`.github/workflows/snapshot-badges.yml`) automatically regenerates badge assets when `src/badges.js` or `src/utils.js` changes on main:
15
+
The CI workflow (`.github/workflows/ci.yml`) includes a `regenerate-badges` job that runs after tests pass:
16
16
17
17
```
18
-
Push to main (badge code changed)
19
-
→ Workflow runs snapshot-badges.js
18
+
Push to main
19
+
→ Tests run
20
+
→ If tests pass, regenerate-badges job runs
20
21
→ If SVGs changed, commits and pushes
21
22
→ Vercel sees commit, redeploys demo
22
23
```
23
24
25
+
Badge regeneration only happens on pushes to main (not PRs) and only after tests pass.
0 commit comments