diff --git a/.github/workflows/validate-frontmatter.yml b/.github/workflows/validate-frontmatter.yml index 9b21941..bb4a58d 100644 --- a/.github/workflows/validate-frontmatter.yml +++ b/.github/workflows/validate-frontmatter.yml @@ -13,6 +13,7 @@ on: - "scripts/validate-frontmatter.mjs" - "scripts/validate-nav-and-redirects.mjs" - "scripts/check-plan-limits.mjs" + - "scripts/check-webhooks-guide.mjs" - "package.json" pull_request: paths: @@ -22,6 +23,7 @@ on: - "scripts/validate-frontmatter.mjs" - "scripts/validate-nav-and-redirects.mjs" - "scripts/check-plan-limits.mjs" + - "scripts/check-webhooks-guide.mjs" - "package.json" jobs: @@ -39,3 +41,5 @@ jobs: run: node scripts/validate-nav-and-redirects.mjs - name: Check plan-limit tables match the source of truth run: node scripts/check-plan-limits.mjs + - name: Check webhooks guide matches the webhook contract + run: node scripts/check-webhooks-guide.mjs diff --git a/docs.json b/docs.json index 17e7fa2..7343f66 100644 --- a/docs.json +++ b/docs.json @@ -34,7 +34,8 @@ "group": "Concepts", "pages": [ "concepts/job", - "guides/webhooks" + "guides/webhooks", + "guides/callbacks" ] }, { diff --git a/guides/callbacks.mdx b/guides/callbacks.mdx new file mode 100644 index 0000000..4b36d69 --- /dev/null +++ b/guides/callbacks.mdx @@ -0,0 +1,177 @@ +--- +title: "Per-job completion callbacks" +description: "Add a completion callback to a single job, POST the result to a per-job URL, and resume a Cloudflare Workflow without polling." +sidebarTitle: "Callbacks" +icon: "reply" +keywords: ["callbacks", "job callback", "per-job callback", "cloudflare workflows", "waitForEvent", "sendEvent", "verifyCallback", "callback signature"] +canonical: "https://rendobar.com/docs/guides/callbacks" +--- + +