Skip to content

Commit 20f3bbb

Browse files
fi3eworkampcode-com
andcommitted
chore: update site deploy schedule to hourly (09:00-02:00 Beijing)
Amp-Thread-ID: https://ampcode.com/threads/T-019d3e99-0e1b-7559-ba73-b3b579e49b52 Co-authored-by: Amp <amp@ampcode.com>
1 parent c3b372e commit 20f3bbb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/cloudflare-pages-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: cloudflare-pages-deploy
22

33
on:
44
schedule:
5-
# Twice daily: 01:00 UTC (09:00 Beijing) and 13:00 UTC (21:00 Beijing)
6-
- cron: '0 1,13 * * *'
5+
# Hourly from 09:00 to 02:00+1 Beijing (01:00–18:00 UTC)
6+
- cron: '0 1-18 * * *'
77
workflow_dispatch:
88

99
concurrency:

website/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ interface UpdateSchedule {
323323
countdownMinutes: number | null;
324324
}
325325

326-
/** Schedule times in UTC hours: 01:00 and 13:00 UTC (09:00 and 21:00 Beijing) */
327-
const SCHEDULE_HOURS_UTC = [1, 13] as const;
326+
/** Schedule times in UTC hours: 01:00–18:00 (09:00–02:00+1 Beijing, hourly) */
327+
const SCHEDULE_HOURS_UTC = Array.from({ length: 18 }, (_, i) => i + 1);
328328

329329
function buildUpdateSchedule(referenceTime: Date): UpdateSchedule {
330330
const nextUpdate = getNextScheduledTime(referenceTime);
@@ -499,7 +499,7 @@ function UpdateScheduleCard({
499499
<div>
500500
<p className="text-sm font-medium text-foreground">Next refresh</p>
501501
<p className="text-[11px] uppercase tracking-[0.25em] text-muted-foreground/55">
502-
12h cron
502+
1h cron
503503
</p>
504504
</div>
505505
<p className="text-right text-sm text-foreground">

0 commit comments

Comments
 (0)