-
Notifications
You must be signed in to change notification settings - Fork 581
42 lines (36 loc) · 984 Bytes
/
compile-llms-txt.yml
File metadata and controls
42 lines (36 loc) · 984 Bytes
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
38
39
40
41
42
name: Compile llms.txt
on:
push:
branches: [ main ]
paths:
- 'docs/**'
- 'README.md'
- 'CONTRIBUTING.md'
- 'examples/*/README.md'
- 'agentops/*/README.md'
workflow_dispatch:
jobs:
compile-llms-txt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install llms-txt
- name: Compile llms.txt
run: |
cd docs
python compile_llms_txt.py
- name: Commit and push if changed
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add llms.txt
git diff --staged --quiet || git commit -m "Auto-update llms.txt from documentation changes"
git push