mirror of
https://github.com/sst/opencode.git
synced 2025-08-31 02:07:24 +00:00
ci: github action
This commit is contained in:
parent
91f8477ef5
commit
177bfed93e
1 changed files with 25 additions and 0 deletions
25
.github/workflows/opencode.yml
vendored
Normal file
25
.github/workflows/opencode.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: opencode
|
||||
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
opencode:
|
||||
if: startsWith(github.event.comment.body, 'hey opencode')
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Run opencode
|
||||
uses: sst/opencode/sdks/github@dev
|
||||
#uses: ./github-actions
|
||||
env:
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
with:
|
||||
model: anthropic/claude-sonnet-4-20250514
|
Loading…
Add table
Add a link
Reference in a new issue