diff --git a/.github/workflows/stars.yml b/.github/workflows/stars.yml index ae5a1e8..c176fb9 100644 --- a/.github/workflows/stars.yml +++ b/.github/workflows/stars.yml @@ -1,9 +1,8 @@ name: stars on: schedule: - # Every ~2.5h (cron can't do half hours, so two interleaved 5-hour schedules) - - cron: '17 0-23/5 * * *' - - cron: '47 2-23/5 * * *' + # Every 4h + - cron: '17 */4 * * *' workflow_dispatch: permissions: contents: write diff --git a/stars.mjs b/stars.mjs index bff53a7..1bfde27 100644 --- a/stars.mjs +++ b/stars.mjs @@ -168,7 +168,7 @@ ${isoStar(ex, ey, S)} ` } -// Only redraw when the star count or the UTC day changes, so the hourly job doesn't commit (and deploy) every run +// Only redraw when the star count or the UTC day changes, so the scheduled job doesn't commit (and deploy) every run const key = (stars, now) => `${stars.length}@${date(now)}` export { svg, markers }