添加了AI助手的”保存到本地“的勾选确认 #215
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Content Check | |
| permissions: | |
| contents: read | |
| actions: write | |
| on: | |
| pull_request: | |
| paths: | |
| - "**/*.md" | |
| - "**/*.mdx" | |
| - "source.config.ts" | |
| - "app/docs/**" | |
| - "data/**" | |
| - "tests/**" | |
| - "lib/source.ts" | |
| - "mdx-components.tsx" | |
| - "package.json" | |
| - "pnpm-lock.yaml" | |
| - "next.config.mjs" | |
| - "postcss.config.mjs" | |
| - "tailwind.config.ts" | |
| - "tsconfig.json" | |
| jobs: | |
| check-content: | |
| runs-on: ubuntu-latest | |
| env: | |
| NEXT_TELEMETRY_DISABLED: "1" | |
| CI: "true" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: "pnpm" | |
| - run: pnpm install --frozen-lockfile | |
| - name: Run tests | |
| run: pnpm test | |
| # Non-blocking image migration + lint (visibility only) | |
| - name: Migrate images next to MDX (check only) | |
| run: pnpm migrate:images || echo "[warn] migrate:images failed (non-blocking)" | |
| - name: Lint image references (non-blocking) | |
| run: pnpm lint:images || echo "[warn] image lint found issues (non-blocking)" |