Files
scaffold/.github/workflows/docs-check.yml
T
baozaotumao e07d57eea1 ci: scaffold 自身文档同步检查(防 README 与 template 漂移)
- scripts/check-docs.sh:校验 template/{backend,agent,frontend}/src 各层目录
  及 .vscode/.claude-commands/.copier-answers/pnpm-workspace 都在 README 有记录
- .github/workflows/docs-check.yml:scaffold 仓库根级 CI(区别于 template/.github,
  那是生成项目用的),改 template/ 或 README 时触发
- 仅作用于 scaffold 自身,不进生成项目、不属 skill
- README scripts 树补 check-docs.sh + docs-check.yml
2026-06-02 00:57:29 -07:00

29 lines
691 B
YAML

name: docs-check
# scaffold 仓库自身的 CI(区别于 template/.github/ 那份——那是生成项目用的)。
# 防止 README 文档随 template/ 结构改动而漂移。
on:
push:
branches: [main]
paths:
- "template/**"
- "README.md"
- "scripts/check-docs.sh"
pull_request:
paths:
- "template/**"
- "README.md"
- "scripts/check-docs.sh"
jobs:
docs-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 校验 README 与 template 结构同步
run: bash scripts/check-docs.sh
- name: 脚本语法检查
run: |
for s in scripts/*.sh; do bash -n "$s"; done