Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion schedules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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 })),
Expand Down
9 changes: 9 additions & 0 deletions schedules/terraform.ts
Original file line number Diff line number Diff line change
@@ -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 * * *" },
],
}
2 changes: 1 addition & 1 deletion wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down