diff --git a/.github/workflows/update-docs-webhook.yaml b/.github/workflows/update-docs-webhook.yaml index 6ff9e5703107d..7f46fb51996ac 100644 --- a/.github/workflows/update-docs-webhook.yaml +++ b/.github/workflows/update-docs-webhook.yaml @@ -25,7 +25,8 @@ jobs: - name: Call deployment webhook env: WEBHOOK_URL: ${{ secrets[matrix.webhooks.url_secret_name] }} + HTTP_METHOD: ${{ matrix.webhooks.http_method }} run: | - if curl -X ${{ matrix.webhooks.http_method }} --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then + if curl -X "$HTTP_METHOD" --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then echo "Triggered successfully" fi