narayann7/Star History Action

Render a self-updating star history chart and commit it into your README. Unofficial star-history helper action.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 11, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: narayann7/star-history-action@d2d4e3a948b3e05f1aef05f4576d666c97d91468 # v1.0.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
reposComma-separated owner/repo list. Defaults to the current repository. Only repos the token owns or collaborates on will work.no${{ github.repository }}
output-dirDirectory where generated chart files (per-theme SVGs and a single PNG) are written.noassets/star-history
tokenGitHub token used for the stargazers API. Defaults to the automatic Actions token. Supply a PAT secret if the default lacks access.no${{ github.token }}
typeChart mode: Date or Timeline.noDate
themesComma-separated themes to render: light, dark.nolight,dark
widthImage width in pixels.no800
font-familyOptional Google Fonts family applied to the PNG chart (e.g. "Patrick Hand"). Empty uses the bundled Comic Neue. Affects the PNG only; GitHub strips fonts from README-embedded SVGs regardless.no""
update-readmeRewrite the README between the star-history marker comments to point at the newest chart. Requires the markers to exist.notrue
readmePath to the README to update when update-readme is true.noREADME.md
readme-formatREADME embed style: "picture" (SVG <picture>, GitHub dark/light) or "png" (plain-markdown absolute-URL PNG, renders on npm/pub.dev).nopicture
commitWhether to commit and push the generated files.notrue
commit-messageCommit message used when committing generated files.nochore: update star history [skip ci]
namedescription
filesNewline-separated list of generated chart file paths (SVGs and the PNG).
changedWhether the chart changed this run (true/false).
lightPath to the newest light-theme SVG (or the first theme).
darkPath to the newest dark-theme SVG, if a dark theme was rendered.
pngPath to the generated PNG chart (single file, rendered from the first configured theme).