From 4970ece899a2902f452c8a474e364b177886755b Mon Sep 17 00:00:00 2001 From: Taras <9948629+taraspos@users.noreply.github.com> Date: Thu, 31 Oct 2024 17:40:03 +0000 Subject: [PATCH] gha(update-docs-webhook): use env variable in shell script --- .github/workflows/update-docs-webhook.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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