mirror of
https://github.com/direct-img/gh.direct-img.link.git
synced 2026-10-29 00:54:51 +00:00
Run the star chart workflow every 4 hours
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user