Guest User

Untitled

a guest
Sep 8th, 2021
4,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.90 KB | None | 0 0
  1. read -r -d '' _json <<EOJSON
  2. {
  3.     "blocks": [
  4.         {
  5.             "type": "section",
  6.             "text": {
  7.                 "type": "mrkdwn",
  8.                 "text": "*Deployment complete!*",
  9.                 "text": "Script took '${variables}' to complete"
  10.             }
  11.         },
  12.         {
  13.             "type": "divider"
  14.         },
  15.         {
  16.             "type": "section",
  17.             "text": {
  18.                 "type": "mrkdwn",
  19.                 "text": "*Section 1: '${variables}'*\n",
  20.                 "text": "*Section 1: '${variables}'*\n",
  21.                 "text": "*Section 1: '${variables}'*\n"
  22.             }
  23.         },
  24.         {
  25.             "type": "divider"
  26.         },
  27.         {
  28.             "type": "section",
  29.             "text": {
  30.                 "type": "mrkdwn",
  31.                 "text": "*Section 2: '${variables}'*",
  32.                 "text": "*Section 2: '${variables}'*",
  33.                 "text": "*Section 2: '${variables}'*"
  34.             }
  35.         },
  36.         {
  37.             "type": "divider"
  38.         }
  39.     ]
  40. }
  41. EOJSON
  42.  
  43. 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