Skip to content

Commit 14268ec

Browse files
tarasposgithub-actions
authored andcommitted
gha(update-docs-webhook): use env variable in shell script
1 parent 84ea1e5 commit 14268ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-docs-webhook.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
- name: Call deployment webhook
2626
env:
2727
WEBHOOK_URL: ${{ secrets[matrix.webhooks.url_secret_name] }}
28+
HTTP_METHOD: ${{ matrix.webhooks.http_method }}
2829
run: |
29-
if curl -X ${{ matrix.webhooks.http_method }} --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
30+
if curl -X "$HTTP_METHOD" --silent --fail --show-error "$WEBHOOK_URL" > /dev/null; then
3031
echo "Triggered successfully"
3132
fi

0 commit comments

Comments
 (0)