Skip to content

ci: daily refresh of committed release/star data - #33

Merged
VijitSingh97 merged 1 commit into
mainfrom
claude/daily-data-refresh
Aug 21, 2026
Merged

ci: daily refresh of committed release/star data#33
VijitSingh97 merged 1 commit into
mainfrom
claude/daily-data-refresh

Conversation

@VijitSingh97

Copy link
Copy Markdown
Contributor

Follow-up to #32. The deployed site already bakes fresh releases.json / stars.json at build time (deploy cron, 06:17 UTC daily); this workflow keeps the committed fallbacks fresh too, so local builds show current numbers and an API hiccup during deploy falls back to at-most-a-day-old data instead of whenever-someone-last-ran-the-script.

  • Runs daily at 05:47 UTC (30 min before the deploy cron) + workflow_dispatch.
  • Reuses scripts/refresh-releases.py unchanged; commits and pushes to main only when the files actually changed, as github-actions[bot].
  • Pushes with the default GITHUB_TOKEN, which by design does not retrigger workflows — no double deploy; the deploy cron picks the commit up 30 minutes later.
  • zizmor-conscious: permissions: {} at top level with contents: write scoped to the job, persist-credentials: false with an explicit token on the push.

Ponytail review: one noted shrink (single-job defaults block, −3 lines) — kept for symmetry with deploy.yml.

🤖 Generated with Claude Code

The deployed site already refreshes both files at build time via the
deploy cron; this keeps the committed fallbacks fresh too, so local
builds show current numbers and an API failure during deploy falls back
to at-most-a-day-old data. Pushes with the default GITHUB_TOKEN, which
does not retrigger workflows — the 06:17 UTC deploy cron 30 minutes
later picks the commit up. Skips the commit entirely when nothing
changed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@VijitSingh97
VijitSingh97 merged commit 53314e3 into main Aug 21, 2026
9 checks passed
@VijitSingh97
VijitSingh97 deleted the claude/daily-data-refresh branch August 21, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant