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
|
name: stars
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Every ~2.5h (cron can't do half hours, so two interleaved 5-hour schedules)
|
# Every 4h
|
||||||
- cron: '17 0-23/5 * * *'
|
- cron: '17 */4 * * *'
|
||||||
- cron: '47 2-23/5 * * *'
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
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)}`
|
const key = (stars, now) => `${stars.length}@${date(now)}`
|
||||||
|
|
||||||
export { svg, markers }
|
export { svg, markers }
|
||||||
|
|||||||
Reference in New Issue
Block a user