diff --git a/action.yml b/action.yml index 432d553..1994b9a 100644 --- a/action.yml +++ b/action.yml @@ -8,8 +8,8 @@ inputs: dingToken: description: 'DingDing bot token' required: true - message: - description: 'Message to send' + body: + description: 'Post Body to send' required: true runs: diff --git a/entrypoint.sh b/entrypoint.sh index 57bbf5a..e061bcf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,24 +6,16 @@ then exit 1 fi -if [ -z "${INPUT_MESSAGE}" ] +if [ -z "${INPUT_BODY}" ] then - echo "message is required!" + echo "body is required!" exit 1 fi -url="https://oapi.dingtalk.com/robot/send?access_token=${INPUT_DINGTOKEN}" +echo "body: $INPUT_BODY" -body=$(cat <