Skip to content

Commit f9b5b6d

Browse files
author
Frank
committed
Add opencode workflow
1 parent cc66e06 commit f9b5b6d

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/opencode.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ jobs:
88
opencode:
99
if: |
1010
contains(github.event.comment.body, ' /oc') ||
11-
startsWith(github.event.comment.body, '/oc') ||
12-
contains(github.event.comment.body, ' /opencode') ||
13-
startsWith(github.event.comment.body, '/opencode')
11+
contains(github.event.comment.body, ' /opencode')
1412
runs-on: ubuntu-latest
1513
permissions:
16-
contents: read
1714
id-token: write
15+
contents: read
16+
pull-requests: read
17+
issues: read
1818
steps:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 1
2321

2422
- name: Run opencode
2523
uses: sst/opencode/github@latest
2624
env:
27-
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
25+
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
2826
with:
29-
model: anthropic/claude-sonnet-4-20250514
27+
model: opencode/sonic

0 commit comments

Comments
 (0)