Skip to content

docs: queue CAP-053–CAP-057 as the next test session in TODO.md's pri… #75

docs: queue CAP-053–CAP-057 as the next test session in TODO.md's pri…

docs: queue CAP-053–CAP-057 as the next test session in TODO.md's pri… #75

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)