stnd.buildSTANDARD MANUAL2026-07-15

webhook-worker

Webhook-worker

A minimal Cloudflare Worker to receive POST webhooks (e.g., from Notion automations) and trigger a GitHub Actions workflow dispatch.

Where it’s at — now: experimental, paused. The eventual “Deploy” button inside Notion —
so Francis’s wife can update the ADE site without touching code (Notion automation →
this worker → GitHub Actions workflow_dispatch).

Usage

  1. Deploy this worker to Cloudflare.
  2. Set the following environment variables in wrangler.toml or via the Cloudflare dashboard:
    • GITHUB_TOKEN: A GitHub token with repo and workflow permissions.
    • GITHUB_OWNER: Your GitHub username or org.
    • GITHUB_REPO: The repository name (e.g., utopie).
    • GITHUB_WORKFLOW: The workflow file name (e.g., deploy-ade.yml).
  3. Send a POST request to the worker endpoint with optional JSON { "inputs": { … } } to pass workflow inputs.

Example curl

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"inputs": {"foo": "bar"}}' \
  https://<your-worker-url>

Security

  • Protect your endpoint with a secret or IP allowlist if needed.
  • Do not expose your GitHub token.