Fix the broken links in the AGENTS.md and openspec markdown files (#679) #559
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: Agent docs detection | ||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| jobs: | ||
| detect: | ||
| runs-on: windows-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.x" | ||
| - name: Detect folders needing agent-doc updates | ||
| shell: pwsh | ||
| run: | | ||
| python .github/detect_copilot_needed.py --base "origin/$env:GITHUB_BASE_REF" --strict | ||
| - name: Scaffold changed agent docs (advisory) | ||
| if: ${{ always() }} | ||
| shell: pwsh | ||
| run: | | ||
| python .github/scaffold_copilot_markdown.py --base "origin/$env:GITHUB_BASE_REF" | ||
| continue-on-error: true | ||
| - name: Validate agent-doc structure (optional) | ||
| if: ${{ always() }} | ||
| shell: pwsh | ||
| run: | | ||
| python .github/check_copilot_docs.py --only-changed --base "origin/$env:GITHUB_BASE_REF" --fail | ||
| continue-on-error: true | ||