Fix broken links to AG2 documentation (#1290) #18
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: Compile llms.txt | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - 'docs/**' | |
| - 'README.md' | |
| - 'CONTRIBUTING.md' | |
| - 'examples/*/README.md' | |
| - 'agentops/*/README.md' | |
| workflow_dispatch: | |
| jobs: | |
| compile-llms-txt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install llms-txt | |
| - name: Compile llms.txt | |
| run: | | |
| cd docs | |
| python compile_llms_txt.py | |
| - name: Commit and push if changed | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add llms.txt | |
| git diff --staged --quiet || git commit -m "Auto-update llms.txt from documentation changes" | |
| git push |