fix(ci): robust catalog sync (untracked-file guard, mkdir, rebase) + stale-catalog gate

This commit is contained in:
DrSmoothl committed 2026-06-26 22:03:42 +08:00
1 parent 75f14540c8
commit 0163af979a
2 files changed
+23 -5

No files matched your search

+10
View File
@@ -41,3 +41,13 @@ jobs:
- name: Run all package tests
run: pnpm -r --no-bail --if-present test
# The MCP test suite regenerates the action catalog (catalog.ts + the
# catalog.json the docs site consumes). Fail if the committed snapshot
# drifted from the live specs — keeps the API docs from going stale.
- name: Verify generated action catalog is up to date
run: |
if ! git diff --exit-code -- packages/mcp/src/generated; then
echo '::error::Generated action catalog is stale. Run `pnpm --filter @snowluma/mcp gen` and commit packages/mcp/src/generated/.' >&2
exit 1
fi