zcong1993-actions-ding/entrypoint.sh

12 lines
263 B
Bash
Raw Normal View History

2019-08-26 14:36:42 +08:00
#!/bin/sh -l
2019-08-26 15:24:49 +08:00
url="https://oapi.dingtalk.com/robot/send?access_token=${INPUT_DINGTOKEN}"
curl "$url" \
-H 'Content-Type: application/json' \
-d "{\"msgtype\": \"text\",
\"text\": {
\"content\": \"${INPUT_MESSAGE}\"
}
}"