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 Actionsworkflow_dispatch).
Usage
- Deploy this worker to Cloudflare.
- Set the following environment variables in
wrangler.tomlor via the Cloudflare dashboard:GITHUB_TOKEN: A GitHub token withrepoandworkflowpermissions.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).
- 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.