Skip to content

Commit 0c1f0cc

Browse files
committed
Add opencode CI
1 parent 8441665 commit 0c1f0cc

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/opencode.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: opencode
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
workflow_call:
9+
10+
jobs:
11+
opencode:
12+
if: |
13+
contains(github.event.comment.body, '/oc') ||
14+
contains(github.event.comment.body, '/opencode')
15+
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
18+
contents: read
19+
pull-requests: read
20+
issues: read
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v6
24+
with:
25+
fetch-depth: 1
26+
persist-credentials: false
27+
- name: Run OpenCode
28+
uses: anomalyco/opencode/github@latest
29+
with:
30+
model: opencode/minimax-m2.5-free

0 commit comments

Comments
 (0)