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}"
|
url="https://oapi.dingtalk.com/robot/send?access_token=${INPUT_DINGTOKEN}"
|
||||||
|
|
||||||
|
body=$(cat <<EOF
|
||||||
|
{
|
||||||
|
"msgtype": "text",
|
||||||
|
"text": {
|
||||||
|
"content": "${INPUT_MESSAGE}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
curl "$url" \
|
curl "$url" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d "{\"msgtype\": \"text\",
|
-d "${body}"
|
||||||
\"text\": {
|
|
||||||
\"content\": \"${INPUT_MESSAGE}\"
|
|
||||||
}
|
|
||||||
}"
|
|
||||||
|
|
Loading…
Reference in New Issue