actions-ding/entrypoint.sh
zcong1993 9cca1b5dbd init
2019-08-26 15:24:49 +08:00

12 lines
263 B
Bash
Executable File

#!/bin/sh -l
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}\"
}
}"