-
Notifications
You must be signed in to change notification settings - Fork 15
37 lines (32 loc) · 1.08 KB
/
llms.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update API Lists and Context Files
on:
push:
branches:
- main # or whatever your default branch is named
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install fastcore llms-txt pysymbol_llm
pip install -r docs/requirements.txt
- name: Run update script
run: |
cd docs
chmod +x updatellms.sh
./updatellms.sh
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add docs/llms.txt docs/llms-ctx.txt docs/llms-ctx-full.txt docs/apilist.txt
git commit -m "Auto-update API lists and context files" || echo "No changes to commit"
git push