Generate LLMs.txt #71
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.txt | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| schedule: | |
| # Run every 7 days at 2:03 AM UTC | |
| - cron: "3 2 */7 * *" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| generate-llms-txt: | |
| name: Generate LLMs.txt file | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| - name: Generate LLMs.txt | |
| run: | | |
| python llmtxt-generator.py | |
| echo "LLMs.txt file generated" | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| branch-token: ${{ secrets.GITHUB_TOKEN }} | |
| sign-commits: true | |
| commit-message: "Update LLMs.txt via automated workflow" | |
| title: "Update LLMs.txt file" | |
| body: "Auto-generated PR to update LLMs.txt file" | |
| branch: "automated-llms-txt-update" | |
| base: main | |
| maintainer-can-modify: true | |
| delete-branch: true |