LLM Context #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update LLM Contexts | |
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 | |
- name: Run update script | |
run: | | |
chmod +x llms.py | |
python llms.py | |
- 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 nbs/llms-ctx.txt nbs/apilist.txt | |
git commit -m "Auto-update API lists and context files" || echo "No changes to commit" | |
git push |