Skip to content

Merge pull request #354 from mistralai/mathisgrosmaitre/feat/support-… #35

Merge pull request #354 from mistralai/mathisgrosmaitre/feat/support-…

Merge pull request #354 from mistralai/mathisgrosmaitre/feat/support-… #35

name: Generate llms.txt and llms-full.txt
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
generate-docs:
runs-on: ubuntu-latest
env:
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install pyyaml requests mistralai
# Run BOTH generators (llms.txt & llms-full.txt) in the same job
- name: Generate llms.txt & llms-full.txt
run: python llms_txt/generate_llms_txt.py
# PR for all changes produced above
- name: Create Pull Request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
with:
token: ${{ secrets.PUBLIC_DOCS_WRITE_TOKEN }}
branch: auto/docs-update
title: "Auto-update llms.txt & llms-full.txt"
body: |
This PR was automatically generated by a GitHub Action.
- `llms.txt`
- `llms-full.txt`
base: main
commit-message: "chore(docs): auto-update llms.txt & llms-full.txt"