diff --git a/.github/workflows/notion-poll.yml b/.github/workflows/notion-poll.yml index 0bdb64fc..128c6ccd 100644 --- a/.github/workflows/notion-poll.yml +++ b/.github/workflows/notion-poll.yml @@ -21,6 +21,7 @@ jobs: node-version: '20' - name: 轮询工单簿 + 处理 + 回写 + id: poll env: NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }} WORKORDER_DB_ID: ${{ vars.WORKORDER_DB_ID }} @@ -28,6 +29,7 @@ jobs: run: node scripts/notion-signal-bridge.js poll - name: 提交信号日志 + if: success() run: | git config user.name "铸渊 (ZhùYuān)" git config user.email "zhuyuan@guanghulab.com" diff --git a/scripts/notion-signal-bridge.js b/scripts/notion-signal-bridge.js index 855b7ff4..53fdd2df 100644 --- a/scripts/notion-signal-bridge.js +++ b/scripts/notion-signal-bridge.js @@ -125,7 +125,7 @@ function generateSignalId() { function loadSignalIndex() { if (!fs.existsSync(SIGNAL_INDEX_PATH)) { return { - description: '铸渊信号日志目录索引 · AGE OS Notion 信号桥协议', + description: '铸渊信号日志目录索引 · AGE OS 信号协议(Notion API 直连)', last_updated: new Date().toISOString(), total_count: 0, signals: []