ci(models): run metadata check on pull requests

This commit is contained in:
Patrick Wozniak
2026-08-25 14:43:46 +02:00
parent f23863d326
commit 7ed38d5f70
2 changed files with 13 additions and 5 deletions
+12 -1
View File
@@ -1,6 +1,14 @@
name: Command Code model metadata
on:
pull_request:
branches: [main]
paths:
- ".github/scripts/check-commandcode-model-metadata.ts"
- ".github/workflows/model-metadata.yml"
- "src/core.ts"
- "src/models.ts"
- "tests/test-model-metadata-check.ts"
schedule:
- cron: "17 6 * * *"
workflow_dispatch:
@@ -25,4 +33,7 @@ jobs:
registry-url: https://registry.npmjs.org
- run: npm ci
- name: Compare static metadata with the latest Command Code CLI
run: npm run check:model-metadata
run: npm run check:model-metadata | tee model-metadata-report.md
- name: Publish metadata report
if: always()
run: cat model-metadata-report.md >> "$GITHUB_STEP_SUMMARY"