Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix llm txt workflow #314

Merged
merged 2 commits into from
Feb 17, 2025
Merged
Changes from 1 commit
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
17 changes: 9 additions & 8 deletions .github/workflows/compile-llms-txt.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Compile llms.txt

on:
push:
pull_request:
branches:
- main
paths:
- 'docs/**/*.mdx'
- 'docs/compile_llms_txt.py'

jobs:
compile:
Expand All @@ -20,10 +21,10 @@ jobs:
run: |
cd docs
python compile_llms_txt.py
- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/llms.txt
git commit -m "Update llms.txt" || exit 0
git push
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update llms.txt
title: 'Update llms.txt'
body: 'Auto-generated update to llms.txt based on docs changes'
branch: update-llms-txt