guanghulab/.github/workflows/bridge-syslog-to-notion.yml
2026-05-10 13:12:44 +08:00

45 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ═══════════════════════════════════════════════
# 🔺 Sovereign: TCS-0002∞ | Root: SYS-GLW-0001
# 📜 Copyright: 国作登字-2026-A-00037559
# ═══════════════════════════════════════════════
name: 铸渊 · Bridge A · SYSLOG → Notion
# 管道 Asyslog-inbox/ 有新文件 push → 同步到 Notion「📥 GitHub SYSLOG 收件箱」数据库
#
# 依赖 Secrets仓库 Settings → Secrets and variables → Actions
# NOTION_TOKEN Notion 集成 token
#
# SYSLOG_DB_ID 已内置默认值330ab17507d542c9bbb96d0749b41197
# 如需覆盖,可在 Secrets 中添加 SYSLOG_DB_ID
on:
push:
branches: [main]
paths:
- 'syslog-inbox/**'
- 'syslog-processed/**'
workflow_dispatch:
jobs:
bridge-syslog-to-notion:
name: 📥 Bridge A · SYSLOG → Notion
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: 🔗 同步 syslog-inbox 到 Notion
env:
NOTION_TOKEN: ${{ secrets.ZY_NOTION_TOKEN }}
SYSLOG_DB_ID: ${{ secrets.ZY_NOTION_SYSLOG_DB }}
COMMIT_SHA: ${{ github.sha }}
run: node scripts/notion-bridge.js syslog