Compare commits

..

1 Commits

Author SHA1 Message Date
zcong1993 65e38d7faa chore(sh): clean sh 2019-08-27 17:37:45 +08:00
+11 -5
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}"