guanghulab/.github/archived-workflows/notion-connectivity-test.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

59 lines
2.2 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: 铸渊 · Notion 连通性测试
# YM-TEST-20260307-001 · 铸渊→Notion 数据桥连通性测试
#
# 三项测试:
# 1. 写入「📡 跨平台信号日志」SIGNAL_LOG_DB_ID
# 2. 写入「📋 GitHub 变更日志」CHANGES_DB_ID有默认值
# 3. 写入「📥 GitHub SYSLOG 收件箱」SYSLOG_DB_ID有默认值
#
# 依赖 Secrets
# NOTION_TOKEN Notion Integration Token
#
# 可选 Secrets / Variables
# SIGNAL_LOG_DB_ID 信号日志 database_idSecrets 或 Variables
# CHANGES_DB_ID 变更日志 database_id有默认值可覆盖
# SYSLOG_DB_ID SYSLOG 收件箱 database_id有默认值可覆盖
on:
workflow_dispatch:
jobs:
connectivity-test:
name: 🧪 Notion 连通性测试
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: 🧪 执行连通性测试
id: test
env:
NOTION_TOKEN: ${{ secrets.NOTION_API_KEY }}
SIGNAL_LOG_DB_ID: ${{ vars.SIGNAL_LOG_DB_ID }}
CHANGES_DB_ID: ${{ secrets.NOTION_CHANGE_LOG_DB_ID }}
SYSLOG_DB_ID: ${{ secrets.NOTION_SYSLOG_DB_ID }}
run: node scripts/notion-connectivity-test.js
- name: 提交信号日志
if: always()
run: |
git config user.name "铸渊 (ZhùYuān)"
git config user.email "zhuyuan@guanghulab.com"
git add signal-log/
git diff --cached --quiet || git commit -m "🧪 连通性测试信号日志 · YM-TEST-20260307-001"
# push 可能因分支保护或无变更而失败,不影响测试结果
git push || echo "⚠️ 信号日志推送失败(可能无变更或分支受保护)"