Skip to content

Commit

Permalink
Fixed documentation for the webhook notification.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Apr 30, 2024
1 parent 74e621d commit 2f4a0e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .scaffold/docs/content/workflows/variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ Defined in: `scripts/drevops/notify.sh`

### `DREVOPS_NOTIFY_WEBHOOK_HEADERS`

Webhook headers.<br />Ex: "Content-type: application/json;Authorization: Bearer API_KEY".
Webhook headers.<br />Separate multiple headers with a pipe `|`.<br />Example: `Content-type: application/json|Authorization: Bearer API_KEY`.

Default value: `Content-type: application/json`

Expand Down
3 changes: 2 additions & 1 deletion scripts/drevops/notify-webhook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

1 comment on commit 2f4a0e2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.