Skip to content

Commit 240c5c2

Browse files
committed
add github action to refresh on every deploy
1 parent 6541c54 commit 240c5c2

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/context7.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Generate LLMs.txt
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
llmstxt:
15+
name: Generate LLMSTXT
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: wait for vercel deploy
20+
run: sleep 600
21+
22+
- name: refresh context7 library
23+
run: |
24+
curl -X POST https://context7.com/api/refresh-library \
25+
-H "Content-Type: application/json" \
26+
-d '{"libraryName": "/arcadeai/docs"}'
27+
28+

0 commit comments

Comments
 (0)