Commit 42c26fa
authored
ci: add self-updating star history chart workflow (#206)
Adds narayann7/star-history-action on a daily schedule (plus
`workflow_dispatch`) to render the repo's star-growth chart as
light/dark SVGs into `assets/star-history/` and keep the new marker
block at the bottom of `README.md` up to date. The action only commits
when star data actually changed, and its commit message carries `[skip
ci]`, so refreshes neither spam history nor trigger the CI workflow.
Two deliberate deviations from the upstream example: the action is
pinned to an immutable SHA instead of the mutable `v1` tag, since a
third-party action holding `contents: write` that pushes to this repo
shouldn't be silently updatable; and the per-star `watch` trigger is
left out to avoid a commit for every star event — daily is enough.
The first chart appears after a manual `workflow_dispatch` run once this
lands on main; until then the marker block renders as empty. Localized
READMEs under `docs/` are untouched for now — they can reference the
same generated SVGs once the first run produces them.
Signed-off-by: Kevin Cui <bh@bugs.cc>1 parent 5bcd08d commit 42c26fa
2 files changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
0 commit comments