chore(sh): clean sh
This commit is contained in:
parent
6f3a8d50f2
commit
65e38d7faa
|
@ -14,10 +14,16 @@ fi
|
|||
|
||||
url="https://oapi.dingtalk.com/robot/send?access_token=${INPUT_DINGTOKEN}"
|
||||
|
||||
body=$(cat <<EOF
|
||||
{
|
||||
"msgtype": "text",
|
||||
"text": {
|
||||
"content": "${INPUT_MESSAGE}"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
)
|
||||
|
||||
curl "$url" \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d "{\"msgtype\": \"text\",
|
||||
\"text\": {
|
||||
\"content\": \"${INPUT_MESSAGE}\"
|
||||
}
|
||||
}"
|
||||
-d "${body}"
|
||||
|
|
Loading…
Reference in New Issue