Skip to content

Commit 33deecf

Browse files
committed
Create doc-helper.yml
1 parent 64e5fdf commit 33deecf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/doc-helper.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# .github/workflows/doc-helper.yml
2+
name: Documentation Helper
3+
4+
on:
5+
pull_request:
6+
paths:
7+
- '**.py' # Only run on Python file changes
8+
types: [opened, synchronize]
9+
10+
jobs:
11+
update-docs:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.head_ref }}
21+
fetch-depth: 0
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: '3.10'
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install anthropic gitpython
32+
33+
- name: Run documentation helper
34+
env:
35+
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
36+
run: python .github/scripts/doc_helper.py

0 commit comments

Comments
 (0)