Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- read -r -d '' _json <<EOJSON
- {
- "blocks": [
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "*Deployment complete!*",
- "text": "Script took '${variables}' to complete"
- }
- },
- {
- "type": "divider"
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "*Section 1: '${variables}'*\n",
- "text": "*Section 1: '${variables}'*\n",
- "text": "*Section 1: '${variables}'*\n"
- }
- },
- {
- "type": "divider"
- },
- {
- "type": "section",
- "text": {
- "type": "mrkdwn",
- "text": "*Section 2: '${variables}'*",
- "text": "*Section 2: '${variables}'*",
- "text": "*Section 2: '${variables}'*"
- }
- },
- {
- "type": "divider"
- }
- ]
- }
- EOJSON
- curl -X POST -H 'Content-type: application/json' --data "$_json" https://hooks.slack.com/services/x/x/x
Advertisement
Add Comment
Please, Sign In to add comment