Skip to content

Commit

Permalink
Remove Vercel webhook call
Browse files Browse the repository at this point in the history
Backports #50579

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 committed Dec 27, 2024
1 parent 47bb7f2 commit 321aecb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/update-docs-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +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] }}
WEBHOOK_URL: ${{ secrets[AMPLIFY_DOCS_DEPLOY_HOOK] }}
run: |
if curl -X ${{ matrix.webhooks.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 321aecb

Please sign in to comment.