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

49 lines
1.7 KiB
YAML

# ═══════════════════════════════════════════════
# 🔺 Sovereign: TCS-0002∞ | Root: SYS-GLW-0001
# 📜 Copyright: 国作登字-2026-A-00037559
# ═══════════════════════════════════════════════
name: "📰 铸渊 · 光湖开发日报"
on:
schedule:
- cron: '0 2 * * *' # UTC 02:00 = 北京时间 10:00
workflow_dispatch: # 支持手动触发
permissions:
contents: write
pull-requests: write
discussions: write
jobs:
daily-report:
name: 生成并发布开发日报
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 50 # 获取最近提交用于日报亮点
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
# ── 生成并发布日报 ──
- name: 生成开发日报
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
DISCUSSION_CATEGORY: "Announcements"
run: node scripts/generate-daily-report.js
# ── 直接提交日报存档到 main ──
- name: 提交日报存档
run: |
git config user.name "zhuyuan-bot"
git config user.email "zhuyuan@guanghulab.com"
git add docs/daily-reports/ || true
git diff --staged --quiet || git commit -m "📰 光湖开发日报 · $(TZ='Asia/Shanghai' date '+%Y-%m-%d') [skip ci]"
git push || true