From e44990d776f17778572344c2053c25a430333799 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 16:46:40 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Pipeline=20B=E6=9F=A5=E6=89=BE=E5=BD=92?= =?UTF-8?q?=E6=A1=A3=E5=90=8E=E7=9A=84syslog=E6=96=87=E4=BB=B6=20=E2=80=94?= =?UTF-8?q?=20=E8=A7=A3=E5=86=B3=E8=B7=A8job=E6=96=87=E4=BB=B6=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- .github/workflows/syslog-pipeline.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/syslog-pipeline.yml b/.github/workflows/syslog-pipeline.yml index 0c6410c0..09a61763 100644 --- a/.github/workflows/syslog-pipeline.yml +++ b/.github/workflows/syslog-pipeline.yml @@ -142,8 +142,18 @@ jobs: fi # 读取 SYSLOG 文件内容传递给 wake-persona.js + # 注意:Pipeline A 可能已将文件从 syslog-inbox/ 归档到 syslog-processed/ if [ -f "$SYSLOG_FILE" ]; then export SUBMIT_CONTENT=$(cat "$SYSLOG_FILE") + else + BASENAME=$(basename "$SYSLOG_FILE") + PROCESSED_FILE=$(find syslog-processed/ -name "$BASENAME" -type f 2>/dev/null | head -1) + if [ -n "$PROCESSED_FILE" ]; then + echo "📂 文件已归档,从 $PROCESSED_FILE 读取" + export SUBMIT_CONTENT=$(cat "$PROCESSED_FILE") + else + echo "⚠️ SYSLOG 文件未找到: $SYSLOG_FILE(inbox 和 processed 均不存在)" + fi fi if node scripts/wake-persona.js; then