Files
czm 0e8200c0f8 refactor: 分离 Skill 安装内容与仓库维护资源
迁移 Skill 到独立目录,同步脚本路径、文档和 CI,新增下游 CI 模板及安装回归检查。

Fixes #4
2026-10-07 22:46:26 +08:00

47 lines
1.3 KiB
YAML

name: Verify Agent Notes
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
- name: Verify note tree, format, and archive seals
env:
# HEAD is a no-op on a clean checkout. Compare against the pre-change
# commit: PR base, or the previous tip of the pushed branch.
# A new-branch push sends before=0000…; git show fails and the script
# skips append-only (seal-vs-disk still runs).
AGENT_NOTE_ARCHIVE_BASE_REF: ${{ github.event.pull_request.base.sha || github.event.before }}
run: |
npx tsx skills/write-notes-like-deepseek/scripts/verify-agent-note-tree.ts
npx tsx skills/write-notes-like-deepseek/scripts/verify-agent-note-format.ts
npx tsx skills/write-notes-like-deepseek/scripts/verify-archived-agent-notes.ts
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Verify skill installation and host commands
run: npm run test-skill-install