docs: queue CAP-053–CAP-057 as the next test session in TODO.md's pri… #75
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: Update sitemap | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - '**/*.md' | |
| - 'scripts/generate_sitemap.py' | |
| jobs: | |
| regenerate-sitemap: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| # Full history, not the default shallow clone — generate_sitemap.py | |
| # uses `git log` per file for <lastmod>, which needs it. | |
| fetch-depth: 0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - run: ./scripts/generate_sitemap.py | |
| - run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git diff --quiet sitemap.xml || (git add sitemap.xml && git commit -m "docs: auto-regenerate sitemap.xml [skip ci]" && git push) |