Skip to content

Commit a13f156

Browse files
committed
chore: simplify paths in llm-bundle workflow and update cache dependency path for improved clarity
1 parent cfd7a7e commit a13f156

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

.github/workflows/llm-bundle.yml

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ on:
44
push:
55
branches: [ main ]
66
paths:
7-
- 'cookbook/docs/**'
8-
- 'cookbook/Toolkit/**'
9-
- 'cookbook/static/**'
10-
- 'cookbook/sidebars.ts'
11-
- 'cookbook/toolkitSidebars.ts'
12-
- 'cookbook/scripts/generate-llm.js'
13-
- 'cookbook/package.json'
14-
- 'cookbook/package-lock.json'
15-
- 'cookbook/.github/workflows/llm-bundle.yml'
7+
- 'docs/**'
8+
- 'Toolkit/**'
9+
- 'static/**'
10+
- 'sidebars.ts'
11+
- 'toolkitSidebars.ts'
12+
- 'scripts/generate-llm.js'
13+
- 'package.json'
14+
- 'package-lock.json'
15+
- '.github/workflows/llm-bundle.yml'
1616
pull_request:
1717
paths:
18-
- 'cookbook/docs/**'
19-
- 'cookbook/Toolkit/**'
20-
- 'cookbook/static/**'
21-
- 'cookbook/sidebars.ts'
22-
- 'cookbook/toolkitSidebars.ts'
23-
- 'cookbook/scripts/generate-llm.js'
24-
- 'cookbook/package.json'
25-
- 'cookbook/package-lock.json'
26-
- 'cookbook/.github/workflows/llm-bundle.yml'
18+
- 'docs/**'
19+
- 'Toolkit/**'
20+
- 'static/**'
21+
- 'sidebars.ts'
22+
- 'toolkitSidebars.ts'
23+
- 'scripts/generate-llm.js'
24+
- 'package.json'
25+
- 'package-lock.json'
26+
- '.github/workflows/llm-bundle.yml'
2727
workflow_dispatch:
2828

2929
jobs:
@@ -35,17 +35,15 @@ jobs:
3535
with:
3636
node-version: 20
3737
cache: 'npm'
38-
cache-dependency-path: cookbook/package-lock.json
38+
cache-dependency-path: ./package-lock.json
3939
- run: npm ci
40-
working-directory: cookbook
4140
- run: npm run generate-llm
42-
working-directory: cookbook
4341
- name: Ensure llm.txt is committed
4442
run: |
45-
git diff --stat --exit-code cookbook/llm.txt || (echo "::error ::llm.txt is out of date. Run 'npm run generate-llm' in cookbook/, add cookbook/llm.txt, and commit/push the change." && exit 1)
43+
git diff --stat --exit-code llm.txt || (echo "::error ::llm.txt is out of date. Run 'npm run generate-llm', add llm.txt, and commit/push the change." && exit 1)
4644
- name: Upload llm.txt
4745
if: always()
4846
uses: actions/upload-artifact@v4
4947
with:
5048
name: llm.txt
51-
path: cookbook/llm.txt
49+
path: llm.txt

0 commit comments

Comments
 (0)