This repository was archived by the owner on Jun 9, 2026. It is now read-only.
release(m1/4): CI, PAI core docs, algorithm, actions, pipelines, user scaffold [v3.0.0] #324
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: OpenCode Agent | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| jobs: | |
| opencode: | |
| # Only trigger on /opencode or /oc commands | |
| if: | | |
| contains(github.event.comment.body, '/opencode') || | |
| contains(github.event.comment.body, '/oc') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - name: Run OpenCode | |
| uses: anomalyco/opencode/github@latest | |
| env: | |
| # Optional: Falls du einen API Key hast, als Secret konfigurieren | |
| # ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| # OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} | |
| OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} | |
| with: | |
| # Model kann überschrieben werden — default kommt aus opencode.json | |
| model: anthropic/claude-sonnet-4-5 |