Skip to content

Commit a77ff80

Browse files
committed
fix llm txt workflow
1 parent 92818a8 commit a77ff80

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: Compile llms.txt
22

33
on:
4-
push:
4+
pull_request:
55
branches:
66
- main
77
paths:
88
- 'docs/**/*.mdx'
9+
- 'docs/compile_llms_txt.py'
910

1011
jobs:
1112
compile:
@@ -20,10 +21,10 @@ jobs:
2021
run: |
2122
cd docs
2223
python compile_llms_txt.py
23-
- name: Commit and push changes
24-
run: |
25-
git config --local user.email "action@github.com"
26-
git config --local user.name "GitHub Action"
27-
git add docs/llms.txt
28-
git commit -m "Update llms.txt" || exit 0
29-
git push
24+
- name: Create Pull Request
25+
uses: peter-evans/create-pull-request@v5
26+
with:
27+
commit-message: Update llms.txt
28+
title: 'Update llms.txt'
29+
body: 'Auto-generated update to llms.txt based on docs changes'
30+
branch: update-llms-txt

0 commit comments

Comments
 (0)