-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 936 Bytes
/
pilot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Doc-Pilot
on: [push, pull_request]
permissions:
actions: read
contents: write
jobs:
add-docstring:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: DocPilot
persist-credentials: false
submodules: "recursive"
fetch-depth: 100
- name: Get files Changes
uses: lots0logs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch Commit Changes
id: fetch_changes
run: |
cd DocPilot
# files changed can be accessed through ${HOME}/files.json
git diff HEAD~1 HEAD --output="diff.txt"
- name: Run Claude Magic
run: |
cd DocPilot
python3 claude/script.py ${{secrets.ANTHROPIC_API_KEY}}