Skip to content

更新 opencode.yml #81

更新 opencode.yml

更新 opencode.yml #81

Workflow file for this run

name: opencode

Check failure on line 1 in .github/workflows/opencode.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/opencode.yml

Invalid workflow file

(Line: 30, Col: 10): 'with' is already defined
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
jobs:
opencode:
if: |
contains(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
persist-credentials: false
- name: Run OpenCode
uses: anomalyco/opencode/github@latest
with:
agent: github-headless
env:
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
with:
model: deepseek/deepseek-reasoner