Skip to content

Commit b97e202

Browse files
kt3kclaude
andcommitted
feat: move daily digest run to 00:10 UTC
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 54f7234 commit b97e202

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/digest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Digest
22

33
on:
44
schedule:
5-
# 06:00 UTC daily — summarizes the previous UTC day. On Mondays it also rolls
5+
# 00:10 UTC daily — summarizes the previous UTC day. On Mondays it also rolls
66
# up the completed ISO week; on the 1st, the completed calendar month.
7-
- cron: "0 6 * * *"
7+
- cron: "10 0 * * *"
88
workflow_dispatch:
99
inputs:
1010
date:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ deno task build # outputs to _site/
6060

6161
## Deploy (GitHub Pages)
6262

63-
The `Digest` workflow (`.github/workflows/digest.yml`) runs at 06:00 UTC: it
63+
The `Digest` workflow (`.github/workflows/digest.yml`) runs at 00:10 UTC: it
6464
generates the daily digest (plus a weekly rollup on Mondays and a monthly one on
6565
the 1st) and commits any new posts. It then calls the separate `Deploy` workflow
6666
(`.github/workflows/deploy.yml`), which builds the Lume site and publishes it to

_config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const watched = (reposDoc.repos ?? []).map((r) =>
2626
);
2727
site.data("watched", watched);
2828

29-
// Next scheduled daily run (cron "0 6 * * *"): the upcoming 06:00 UTC, computed
29+
// Next scheduled daily run (cron "10 0 * * *"): the upcoming 00:10 UTC, computed
3030
// at build time and shown in the footer.
3131
const MONTHS = [
3232
"Jan",
@@ -43,13 +43,13 @@ const MONTHS = [
4343
"Dec",
4444
];
4545
const buildNow = new Date();
46-
const nextRun = new Date(`${buildNow.toISOString().slice(0, 10)}T06:00:00Z`);
46+
const nextRun = new Date(`${buildNow.toISOString().slice(0, 10)}T00:10:00Z`);
4747
if (nextRun.getTime() <= buildNow.getTime()) {
4848
nextRun.setUTCDate(nextRun.getUTCDate() + 1);
4949
}
5050
site.data(
5151
"nextUpdate",
52-
`${MONTHS[nextRun.getUTCMonth()]} ${nextRun.getUTCDate()}, 06:00 UTC`,
52+
`${MONTHS[nextRun.getUTCMonth()]} ${nextRun.getUTCDate()}, 00:10 UTC`,
5353
);
5454

5555
// Tailwind entry stylesheet (compiled by the tailwindcss plugin).

src/_includes/layouts/base.vto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@
5252
</footer>
5353

5454
<script>
55-
// Recompute the next 06:00 UTC run on the client so the footer stays correct
55+
// Recompute the next 00:10 UTC run on the client so the footer stays correct
5656
// even on a cached page, and append a relative ("in 3 hours") hint.
5757
(function () {
5858
var el = document.querySelector("[data-next-update]");
5959
if (!el) return;
6060
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
6161
var now = new Date();
62-
var next = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 6, 0, 0));
62+
var next = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), 0, 10, 0));
6363
if (next.getTime() <= now.getTime()) next.setUTCDate(next.getUTCDate() + 1);
64-
var abs = MONTHS[next.getUTCMonth()] + " " + next.getUTCDate() + ", 06:00 UTC";
64+
var abs = MONTHS[next.getUTCMonth()] + " " + next.getUTCDate() + ", 00:10 UTC";
6565
var mins = Math.round((next.getTime() - now.getTime()) / 60000);
6666
var rel;
6767
if (mins < 1) rel = "any moment";

0 commit comments

Comments
 (0)