From 3a3ed4b0fa60cc61c870e21fe2358fd8be472e6e Mon Sep 17 00:00:00 2001 From: Paul Gottschling Date: Thu, 26 Dec 2024 10:37:53 -0500 Subject: [PATCH] Remove Vercel webhook call 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. --- .github/workflows/update-docs-webhook.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update-docs-webhook.yaml b/.github/workflows/update-docs-webhook.yaml index 7f46fb51996ac..4c59c66039cbd 100644 --- a/.github/workflows/update-docs-webhook.yaml +++ b/.github/workflows/update-docs-webhook.yaml @@ -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