chore(sh): clean sh

This commit is contained in:
zcong1993 2019-08-27 17:37:45 +08:00
parent 6f3a8d50f2
commit 65e38d7faa
1 changed files with 11 additions and 5 deletions

View File

@ -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}"