Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ci): stream QQ notification JSON over SSH stdin

t8y28c2f7c02ad56
diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml
index ff954cc615..47e6d2359a 100644
--- a/.github/workflows/notify.yml
+++ b/.github/workflows/notify.yml
@@ -193,8 +193,9 @@ jobs:
# ${AI_ANALYSIS}"
# fi
- 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 @-"