40 lines
1005 B
YAML
40 lines
1005 B
YAML
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:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: commandcode-model-metadata
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: npm
|
|
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 | tee model-metadata-report.md
|
|
- name: Publish metadata report
|
|
if: always()
|
|
run: cat model-metadata-report.md >> "$GITHUB_STEP_SUMMARY"
|