Add Dappier Search Tool #14
Workflow file for this run
This file contains hidden or 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: Compile llms.txt | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
paths: | |
- 'docs/**/*.mdx' | |
- 'docs/compile_llms_txt.py' | |
jobs: | |
compile: | |
# Only run if the PR was merged (not just closed) | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Compile llms.txt | |
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 |