docs: replace hardcoded content with source references #9
Workflow file for this run
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 llms-full.txt | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/src/content/docs/**" | |
| - "docs/scripts/generate-llms-full.ts" | |
| - ".github/workflows/update-llms.yaml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| update-llms: | |
| name: Update llms-full.txt | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ secrets.GH_APP_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| fetch-depth: 1 | |
| ref: ${{ github.head_ref }} | |
| - uses: moonrepo/setup-toolchain@v0 | |
| with: | |
| auto-install: true | |
| cache: true | |
| cache-base: main | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Regenerate llms-full.txt | |
| run: bun run docs/scripts/generate-llms-full.ts | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v6 | |
| with: | |
| commit_message: "docs: regenerate llms-full.txt" | |
| file_pattern: docs/public/llms-full.txt |