update config

This commit is contained in:
2025-01-22 17:55:20 +07:00
parent 679631315e
commit aee01f1ca5
+13 -3
View File
@@ -181,6 +181,16 @@ jobs:
${APKS} ${APKS}
" "
curl -X POST -H "Content-Type: application/json" \ # Function to send messages in chunks
-d "$(jq -n --arg content "$MSG" '{content: $content}')" \ send_discord_message() {
"$DISCORD_WEBHOOK_URL" local message="$1"
while [ ${#message} -gt 0 ]; do
local chunk="${message:0:2000}" # Take the first 2000 characters
curl -X POST -H "Content-Type: application/json" \
-d "$(jq -n --arg content "$chunk" '{content: $content}')" \
"$DISCORD_WEBHOOK_URL"
message="${message:2000}" # Remove the sent chunk from the message
done
}
send_discord_message "$MSG"