fix: quote QQ release notification payload
This commit is contained in:
parent
d6047e26c1
commit
50b8239ed5
|
|
@ -327,8 +327,9 @@ jobs:
|
|||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan -H "$HOST" >> ~/.ssh/known_hosts 2>/dev/null
|
||||
|
||||
MSG=$(echo "$MSG_CONTENT" | jq -Rs .)
|
||||
ssh "root@${HOST}" "curl -s -X POST http://localhost:6185/api/v1/im/message \
|
||||
PAYLOAD=$(jq -nc --arg msg "$MSG_CONTENT" \
|
||||
'{"umo": "default:GroupMessage:1087880322", "message": $msg}')
|
||||
printf '%s' "$PAYLOAD" | ssh "root@${HOST}" "curl -fsS -X POST http://localhost:6185/api/v1/im/message \
|
||||
-H 'Authorization: Bearer ${ASTRBOT_API_KEY}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{\"umo\": \"default:GroupMessage:1087880322\", \"message\": ${MSG}}'"
|
||||
--data-binary @-"
|
||||
|
|
|
|||
Loading…
Reference in New Issue