auto backup 2026-04-04 08:59:44

This commit is contained in:
--git_token 2026-04-04 08:59:44 +08:00
parent d0717eba49
commit 197fbe9d81
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
logs e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 logs e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
lark_wiki_operate_as_bot.vala f84c308bcb69280520dadf9458177d9c4af192d60cf409528bd65e13f3e67e0a lark_wiki_operate_as_bot.vala f84c308bcb69280520dadf9458177d9c4af192d60cf409528bd65e13f3e67e0a
user-feedback-collector e02a2d4ee3914c393c1c683779c40787128b9163eecccf175531afc19b6d21a9 user-feedback-collector e02a2d4ee3914c393c1c683779c40787128b9163eecccf175531afc19b6d21a9
vala_git_workspace_backup 4c3e6fa1b53e6f5610e8982d5ada9fcfeea16da8107c0b9ed70cafc866337528 vala_git_workspace_backup e157b1d2afd8658df6dce1f75a41d42b2f27c1b349559e0baa6d0a787cc9d81d

View File

@ -11,7 +11,10 @@ git push origin main
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "✅ 备份完成:$(date)" echo "✅ 备份完成:$(date)"
# 备份成功给李若松发送通知 # 备份成功给李若松发送通知
/root/.nvm/versions/node/v24.14.0/bin/node /root/.nvm/versions/node/v24.14.0/bin/openclaw message send --channel feishu --target "user:4aagb443" --message "✅ 工作区自动备份成功已同步到公司Git仓库" APP_ID=$(jq -r '.apps[0].appId' /root/.openclaw/credentials/xiaokui/config.json)
APP_SECRET=$(jq -r '.apps[0].appSecret' /root/.openclaw/credentials/xiaokui/config.json)
TOKEN=$(curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" -H "Content-Type: application/json" -d "{\"app_id\":\"$APP_ID\",\"app_secret\":\"$APP_SECRET\"}" | jq -r '.tenant_access_token')
curl -s -X POST "https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=user_id" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"receive_id": "4aagb443", "msg_type": "text", "content": "{\"text\":\"✅ 工作区自动备份成功已同步到公司Git仓库\"}"}' > /dev/null 2>&1
else else
echo "❌ 备份失败:$(date)" echo "❌ 备份失败:$(date)"
exit 1 exit 1