diff --git a/.scaffold/docs/content/workflows/variables.mdx b/.scaffold/docs/content/workflows/variables.mdx index 4cf359700..b6a5892ef 100644 --- a/.scaffold/docs/content/workflows/variables.mdx +++ b/.scaffold/docs/content/workflows/variables.mdx @@ -1139,7 +1139,7 @@ Defined in: `scripts/drevops/notify.sh` ### `DREVOPS_NOTIFY_WEBHOOK_HEADERS` -Webhook headers.
Ex: "Content-type: application/json;Authorization: Bearer API_KEY". +Webhook headers.
Separate multiple headers with a pipe `|`.
Example: `Content-type: application/json|Authorization: Bearer API_KEY`. Default value: `Content-type: application/json` diff --git a/scripts/drevops/notify-webhook.sh b/scripts/drevops/notify-webhook.sh index 0c7927ee1..078fb1d2f 100755 --- a/scripts/drevops/notify-webhook.sh +++ b/scripts/drevops/notify-webhook.sh @@ -25,7 +25,8 @@ DREVOPS_NOTIFY_WEBHOOK_URL="${DREVOPS_NOTIFY_WEBHOOK_URL:-}" DREVOPS_NOTIFY_WEBHOOK_METHOD="${DREVOPS_NOTIFY_WEBHOOK_METHOD:-POST}" # Webhook headers. -# Ex: "Content-type: application/json;Authorization: Bearer API_KEY". +# Separate multiple headers with a pipe `|`. +# Example: `Content-type: application/json|Authorization: Bearer API_KEY`. DREVOPS_NOTIFY_WEBHOOK_HEADERS="${DREVOPS_NOTIFY_WEBHOOK_HEADERS:-Content-type: application/json}" # Webhook message body as json format.