Update debug-your-app.mdx (#677) #338
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: Generate LLMS Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**/*.md' | |
| - 'docs/**/*.mdx' | |
| - '!docs/public/llms/llms-*.txt' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Run generate_llms_full.py | |
| run: python llms/generate_llms_full.py | |
| - name: Stage generated files | |
| run: git add -f docs/public/llms/llms-*.txt | |
| - name: Create Pull Request | |
| id: create-pr | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: Update LLM documentation files | |
| title: Update LLM documentation files | |
| body: | | |
| This PR updates the LLM documentation files with the latest changes: | |
| - llms-chat-apps.txt (for chat app developers) | |
| - llms-agents.txt (for agent developers) | |
| - llms-full.txt (comprehensive documentation) | |
| Automated PR created by GitHub Actions. | |
| branch: update-llms-docs | |
| base: main | |
| delete-branch: true | |
| - name: Auto-approve PR | |
| if: steps.create-pr.outputs.pull-request-number | |
| run: gh pr review --approve "${{ steps.create-pr.outputs.pull-request-number }}" | |
| env: | |
| GH_TOKEN: ${{ secrets.LLMS_PAT }} | |
| - name: Enable auto-merge | |
| if: steps.create-pr.outputs.pull-request-number | |
| run: gh pr merge --auto --squash "${{ steps.create-pr.outputs.pull-request-number }}" | |
| env: | |
| GH_TOKEN: ${{ secrets.LLMS_PAT }} |