Try to stop org registry inlining the example json

This commit is contained in:
Adam Millerchip 2020-10-17 20:04:28 +09:00
parent 185f22b3de
commit 591c749d72
1 changed files with 30 additions and 30 deletions

View File

@ -69,17 +69,17 @@ examples:
- slack-webhook/send-message: - slack-webhook/send-message:
webhook-url: https://hooks.slack.com/... webhook-url: https://hooks.slack.com/...
json-payload: | json-payload: |
{ {
"blocks": [ "blocks": [
{ {
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋" "text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋"
}
} }
} ]
] }
}
environment-variable: environment-variable:
description: | description: |
Provide the webhook URL in the SLACK_WEBHOOK environment variable on CircleCI. Provide the webhook URL in the SLACK_WEBHOOK environment variable on CircleCI.
@ -98,17 +98,17 @@ examples:
steps: steps:
- slack-webhook/send-message: - slack-webhook/send-message:
json-payload: | json-payload: |
{ {
"blocks": [ "blocks": [
{ {
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋" "text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋"
}
} }
} ]
] }
}
custom-environment-variable: custom-environment-variable:
description: | description: |
Supply the webhook URL in a custom environment variable configured on CircleCI, Supply the webhook URL in a custom environment variable configured on CircleCI,
@ -129,14 +129,14 @@ examples:
- slack-webhook/send-message: - slack-webhook/send-message:
webhook-url-env-var: CUSTOM_SLACK_WEBHOOK_VARIABLE webhook-url-env-var: CUSTOM_SLACK_WEBHOOK_VARIABLE
json-payload: | json-payload: |
{ {
"blocks": [ "blocks": [
{ {
"type": "section", "type": "section",
"text": { "text": {
"type": "mrkdwn", "type": "mrkdwn",
"text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋" "text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋"
}
} }
} ]
] }
}