Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/llms-full.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: llms-full

on:
push:
branches: [master]
paths:
- website/docs/**
- website/static/llms.txt
- scripts/generate-llms-full.js

permissions:
contents: write

jobs:
regenerate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: master

- uses: actions/setup-node@v4
with:
node-version: 20

- name: Generate llms-full
run: node scripts/generate-llms-full.js

- name: Commit llms-full
run: |
if git diff --quiet -- website/static/llms-full.txt; then
echo "llms-full.txt is already up to date"
exit 0
fi

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add website/static/llms-full.txt
git commit -m "docs: update llms-full"
git push origin master
Loading
Loading