ci(debug): type-sync-check 加入 diff 輸出以診斷 CI 失敗原因
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-06 12:17:36 +08:00
parent 8235f91bc6
commit b416ab6577

View File

@@ -57,11 +57,15 @@ jobs:
run: |
cd apps/api
python3 ../../scripts/generate-schemas.py
echo "=== Generated schema definition count ==="
python3 -c "import json; d=json.load(open('../../packages/shared-types/schemas/api-types.json')); print(f'definitions: {len(d[\"definitions\"])}')"
cd ../../packages/shared-types
pnpm generate:types
- name: Check for Differences
run: |
echo "=== git diff packages/shared-types/ ==="
git diff packages/shared-types/
if git diff --exit-code packages/shared-types/; then
echo "✅ TypeScript 型別與 Pydantic 模型同步"
else