From 56b7f1d7ede8cd543ad9f491510b1befaa7eceeb Mon Sep 17 00:00:00 2001 From: Josh Vaughen Date: Mon, 31 Aug 2026 17:58:13 -0700 Subject: [PATCH] feat(schedules): dispatch jshvn/terraform drift.yml nightly at 04:15 --- schedules/index.ts | 3 ++- schedules/terraform.ts | 9 +++++++++ wrangler.jsonc | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 schedules/terraform.ts diff --git a/schedules/index.ts b/schedules/index.ts index eac737f..9ec4ab0 100644 --- a/schedules/index.ts +++ b/schedules/index.ts @@ -23,6 +23,7 @@ // with node's own resolver, which does not guess one. tsconfig.json allows it. import ctan from "./ctan.ts" +import terraform from "./terraform.ts" import tlnet from "./tlnet.ts" export type Workflow = { @@ -47,7 +48,7 @@ export type Target = Workflow & { repo: string } // Annotated here rather than in each repo file, so a leaf stays plain data with no import // of its own. A typo in one still fails to compile; it fails on this line. -const REPOS: readonly Repo[] = [ctan, tlnet] +const REPOS: readonly Repo[] = [ctan, terraform, tlnet] export const TARGETS: readonly Target[] = REPOS.flatMap((r) => r.workflows.map((w) => ({ repo: r.repo, ...w })), diff --git a/schedules/terraform.ts b/schedules/terraform.ts new file mode 100644 index 0000000..087dfe6 --- /dev/null +++ b/schedules/terraform.ts @@ -0,0 +1,9 @@ +// jshvn/terraform -- Cloudflare as code. drift.yml plans every onboarded stack against +// what is live, with no diff filter on purpose, and opens an issue on a finding. +export default { + repo: "jshvn/terraform", + workflows: [ + // Nightly, minutes offset from the hour: GitHub sheds top-of-the-hour dispatches first. + { workflow: "drift.yml", cron: "15 4 * * *" }, + ], +} diff --git a/wrangler.jsonc b/wrangler.jsonc index 1c00d9b..63775cc 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -18,7 +18,7 @@ // wrangler requires a default export, and this keeps it off a public URL entirely. "workers_dev": false, "observability": { "enabled": true }, - "triggers": { "crons": ["30 3 * * *", "42 * * * *"] }, + "triggers": { "crons": ["15 4 * * *", "30 3 * * *", "42 * * * *"] }, "workflows": [ { "name": "dispatch",