Skip to content

Commit 142c421

Browse files
authored
Update ai-docs-pr.yml (#990)
1 parent 3f6288f commit 142c421

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/ai-docs-pr.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,27 @@ on:
1111

1212
jobs:
1313
generate-docs:
14-
if: github.event_name == 'repository_dispatch'
1514
runs-on: ubuntu-latest
1615

1716
steps:
1817
- name: Checkout Repo
1918
uses: actions/checkout@v4
2019

21-
- name: Claude Code
22-
uses: anthropics/claude-code-action@beta
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
2322
with:
24-
prompt: "Review the /docs folder structure and file content, and propose changes (if applicable and not already addressed in documentation) based on this prompt: ${{ github.event.client_payload.prompt }}"
25-
anthropic_api_key: "${{ secrets.CLAUDE_API_KEY }}"
26-
output-dir: "output"
23+
node-version: 18
24+
25+
- name: Install Claude CLI
26+
run: npm install -g @anthropic-ai/claude-code
27+
28+
- name: Run Claude
29+
run: |
30+
echo "Review the /docs folder structure and file content, and propose changes (if applicable and not already addressed in documentation) based on this prompt: ${{ github.event.client_payload.prompt }}" > prompt.txt
31+
mkdir -p output
32+
claude-code --input prompt.txt --output output
33+
env:
34+
ANTHROPIC_API_KEY: ${{ secrets.CLAUDE_API_KEY }}
2735

2836
- name: Create Branch and Commit
2937
run: |

0 commit comments

Comments
 (0)