Skip to content

Commit

Permalink
gha(update-docs-webhook): use env variable in shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos authored and github-actions committed Nov 1, 2024
1 parent 5bef5fb commit 2a0f575
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/update-docs-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2a0f575

Please sign in to comment.