Fix agent-guidance.md ownership table for paths that do not exist her… #274
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.xml | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - '**/*.md' | |
| - '**/*.mdx' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-sitemap: | |
| if: github.actor != 'github-actions[bot]' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build site (generates sitemap) | |
| run: yarn build | |
| - name: Update static sitemap file | |
| run: cp build/sitemap.xml static/sitemap.xml | |
| - name: Validate sitemap XML | |
| run: python -c "import xml.etree.ElementTree as ET; ET.parse('static/sitemap.xml')" | |
| - name: Commit and push sitemap update | |
| run: | | |
| if git diff --quiet -- static/sitemap.xml; then | |
| echo "No sitemap changes detected." | |
| exit 0 | |
| fi | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add static/sitemap.xml | |
| git commit -m "chore: update sitemap.xml [skip ci]" | |
| git push |