diff options
| author | Frank <[email protected]> | 2025-08-25 03:38:02 +0800 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-08-25 03:38:02 +0800 |
| commit | f9b5b6d129d7838dbac872b6982be69ead30d27f (patch) | |
| tree | 3a5103fde4a551be8a0061747684c1188542a8ec /.github | |
| parent | cc66e06101484410ef4236aa40f386fa804db1e7 (diff) | |
| download | opencode-f9b5b6d129d7838dbac872b6982be69ead30d27f.tar.gz opencode-f9b5b6d129d7838dbac872b6982be69ead30d27f.zip | |
Add opencode workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/opencode.yml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index cbe35f615..08014cf2c 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -8,22 +8,20 @@ jobs: opencode: if: | contains(github.event.comment.body, ' /oc') || - startsWith(github.event.comment.body, '/oc') || - contains(github.event.comment.body, ' /opencode') || - startsWith(github.event.comment.body, '/opencode') + contains(github.event.comment.body, ' /opencode') runs-on: ubuntu-latest permissions: - contents: read id-token: write + contents: read + pull-requests: read + issues: read steps: - name: Checkout repository uses: actions/checkout@v4 - with: - fetch-depth: 1 - name: Run opencode uses: sst/opencode/github@latest env: - ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} + OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} with: - model: anthropic/claude-sonnet-4-20250514 + model: opencode/sonic
\ No newline at end of file |
