Skip to content

Commit

Permalink
Remove Vercel webhook call
Browse files Browse the repository at this point in the history
Since we have migrated the docs away from the Vercel site to a new
Docusaurus-based site, we can remove the GHA workflow step that triggers
a Vercel build webhook.
  • Loading branch information
ptgott authored and github-actions committed Dec 26, 2024
1 parent b3bb909 commit 3a3ed4b
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/update-docs-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
environment: update-docs
strategy:
fail-fast: false
matrix:
webhooks:
- url_secret_name: DOCS_DEPLOY_HOOK
http_method: GET
- url_secret_name: AMPLIFY_DOCS_DEPLOY_HOOK
http_method: POST
steps:
- name: Call deployment webhook
env:
WEBHOOK_URL: ${{ secrets[matrix.webhooks.url_secret_name] }}
HTTP_METHOD: ${{ matrix.webhooks.http_method }}
WEBHOOK_URL: ${{ secrets[AMPLIFY_DOCS_DEPLOY_HOOK] }}
run: |
if curl -X "$HTTP_METHOD" --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
if curl -X POST --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
echo "Triggered successfully"
fi

0 comments on commit 3a3ed4b

Please sign in to comment.