Skip to content

Commit 17f2950

Browse files
committed
Update workflow file
1 parent 1e25d2b commit 17f2950

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

.github/workflows/issue-analyzer.yml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,10 @@ jobs:
1010
issues: write
1111
contents: read
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: workflowkit/issue-assistant@v1
1414
with:
15-
repository: canack/issue-assistant
16-
token: ${{ secrets.ANALYZER_PAT }}
17-
path: .issue-assistant
18-
19-
- name: Build and run assistant
20-
working-directory: .issue-assistant
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
AI_TYPE: "claude" # or "claude"
24-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
25-
CLAUDE_API_KEY: ${{ secrets.CLAUDE_API_KEY }}
26-
ENABLE_COMMENT: true
27-
ENABLE_LABEL: true
28-
GITHUB_EVENT_PATH: ${{ github.event_path }}
29-
run: |
30-
docker build -t issue-assistant .
31-
docker run --rm \
32-
-e GITHUB_TOKEN \
33-
-e AI_TYPE \
34-
-e OPENAI_API_KEY \
35-
-e CLAUDE_API_KEY \
36-
-e ENABLE_COMMENT \
37-
-e ENABLE_LABEL \
38-
-e GITHUB_EVENT_PATH \
39-
-v ${GITHUB_EVENT_PATH}:${GITHUB_EVENT_PATH} \
40-
issue-assistant
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
ai_type: "claude"
17+
claude_api_key: ${{ secrets.CLAUDE_API_KEY }}
18+
enable_comment: "true"
19+
enable_label: "true"

0 commit comments

Comments
 (0)