blob: 32742747fdb255851d5df218b4888e20c2da2a9f [file] [log] [blame] [view]
<!-- Auto-generated by x/build/update-readmes.go -->
[![Go Reference](https://pkg.go.dev/badge/golang.org/x/build/cloudfns/wikiwebhook.svg)](https://pkg.go.dev/golang.org/x/build/cloudfns/wikiwebhook)
# golang.org/x/build/cloudfns/wikiwebhook
Package wikiwebhook implements an Google Cloud Function HTTP handler that expects GitHub webhook change events.
<!-- End of auto-generated section -->
## Deploying
```sh
gcloud functions deploy GitHubWikiChangeWebHook \
--project=symbolic-datum-552 \
--runtime go113 \
--trigger-http \
--set-env-vars="PUBSUB_TOPIC=github.webhooks.golang.go.wiki,GCP_PROJECT=symbolic-datum-552,GITHUB_WEBHOOK_SECRET=$(gcloud --project=symbolic-datum-552 secrets versions access latest --secret=github-webhook-secret)"
```