name: Update LLMs Index on: schedule: - cron: '0 0 * * *' # Run daily at midnight UTC workflow_dispatch: # Allow manual trigger jobs: update-index: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v6 - name: Install pnpm uses: pnpm/action-setup@v4 with: version: "10.7.1" run_install: false - name: Setup Node.js uses: actions/setup-node@v6 with: node-version: '24' cache: 'pnpm' - name: Install dependencies run: pnpm install - name: Generate LLMs Index run: pnpm node scripts/llms-chatbot-index-generator.js - name: Commit changes run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" # Only commit if there are changes if [[ -n $(git status -s) ]]; then git add apps/chatbot/public/llms-index.json git add apps/chatbot/public/llms-cache/ git commit -m "chore: update llms.txt index [skip ci]" git push else echo "No changes to commit" fi