Skip to content

Commit 3f4bd83

Browse files
chore: snapshot llms.txt on PRs (#458)
* chore: snapshot llms.txt on PRs Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * 📄 Update LLMs.txt snapshot for PR review --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9bc9d70 commit 3f4bd83

3 files changed

Lines changed: 8503 additions & 0 deletions

File tree

.github/workflows/llms.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# A GitHub Actions workflow that builds the site and snapshots LLM plugin output for review
2+
3+
name: Check LLMs.txt snapshot
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
snapshot-llms:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Prepare environment
20+
uses: ./.github/actions/prepare
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build Docusaurus site
26+
run: npm run build
27+
28+
- name: Copy LLM plugin output for snapshot
29+
run: |
30+
mkdir -p .llms-snapshots
31+
cp ./build/llms.txt .llms-snapshots/llms.txt
32+
cp ./build/llms-full.txt .llms-snapshots/llms-full.txt
33+
34+
- name: Commit snapshot
35+
uses: EndBug/add-and-commit@v9
36+
# This step is skipped on main; snapshot updates are reviewed in PRs
37+
if: ${{ github.ref != 'refs/heads/main' }}
38+
with:
39+
add: .llms-snapshots
40+
default_author: github_actions
41+
message: '📄 Update LLMs.txt snapshot for PR review'

0 commit comments

Comments
 (0)