Skip to content

feat: report truncated ADR briefings, trim the ADR corpus 15.6%, add GEN-005 briefing budget #298

feat: report truncated ADR briefings, trim the ADR corpus 15.6%, add GEN-005 briefing budget

feat: report truncated ADR briefings, trim the ADR corpus 15.6%, add GEN-005 briefing budget #298

Workflow file for this run

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
env:
ARCHGATE_TELEMETRY: "0"
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@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.GH_APP_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
# Scope the app token — without this the token inherits every
# permission the app installation has (zizmor: github-app).
permission-contents: write
# Credentials must persist: git-auto-commit-action pushes the regenerated
# file via git using the checkout-persisted app token.
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 # zizmor: ignore[artipacked]
with:
token: ${{ steps.generate_token.outputs.token }}
fetch-depth: 1
ref: ${{ github.head_ref }}
- uses: moonrepo/setup-toolchain@261c62cb5b0f580c7be7c8cd0f023a2e96756095 # v0.6.4
with:
auto-install: true
cache: true
cache-base: main
cache-version: ${{ env.ImageOS }}
- 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@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0
with:
commit_message: "docs: regenerate llms-full.txt"
commit_options: "--signoff"
file_pattern: docs/public/llms-full.txt