guanghulab/guanghulab-main/.github/workflows/bridge-syslog-to-notion.yml
Guanghu Domestic Migration d1e47f4565
Some checks are pending
自动更新代码和重启 / update-and-restart (push) Waiting to run
CI检查 + 自动部署 / check (push) Waiting to run
CI检查 + 自动部署 / deploy (push) Blocked by required conditions
重启聊天服务 / restart (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-002
Source snapshot: ca48d3ddf926d79aa138306164169baf764bb829
2026-07-17 15:54:41 +08:00

41 lines
1.1 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.

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.NOTION_TOKEN }}
SYSLOG_DB_ID: ${{ secrets.SYSLOG_DB_ID }}
COMMIT_SHA: ${{ github.sha }}
run: node scripts/notion-bridge.js syslog