ensure args exists
This commit is contained in:
parent
9cca1b5dbd
commit
b532a604f2
@ -1,5 +1,17 @@
|
|||||||
#!/bin/sh -l
|
#!/bin/sh -l
|
||||||
|
|
||||||
|
if [ -z "${INPUT_DINGTOKEN}" ]
|
||||||
|
then
|
||||||
|
echo "dingToken is required!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${INPUT_MESSAGE}" ]
|
||||||
|
then
|
||||||
|
echo "message is required!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
url="https://oapi.dingtalk.com/robot/send?access_token=${INPUT_DINGTOKEN}"
|
url="https://oapi.dingtalk.com/robot/send?access_token=${INPUT_DINGTOKEN}"
|
||||||
|
|
||||||
curl "$url" \
|
curl "$url" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user