Merge pull request #1279 from braedonsaunders/claude/fix-triangle-art… #203
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 Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'src/**' | |
| - 'wasm/**' | |
| - 'public/**' | |
| - 'tests/**' | |
| - '.claude/**' | |
| - 'docs/**' | |
| jobs: | |
| update-file-tree: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Update file tree | |
| run: node scripts/update-file-tree.js | |
| - name: Check for changes | |
| id: git-check | |
| run: | | |
| git diff --quiet docs/architecture/OVERVIEW.md || echo "changed=true" >> $GITHUB_OUTPUT | |
| - name: Commit and push if changed | |
| if: steps.git-check.outputs.changed == 'true' | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add docs/architecture/OVERVIEW.md | |
| git commit -m "docs: auto-update file tree structure" | |
| git push |