source link fix #11
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 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 llms-txt pysymbol_llm | |
- name: Run update script | |
run: | | |
chmod +x tools/update.sh | |
./tools/update.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 nbs/llms-ctx.txt nbs/apilist.txt nbs/llms-ctx-full.txt | |
git commit -m "Auto-update API lists and context files" || echo "No changes to commit" | |
git push |