opencode.yml 588 B

1234567891011121314151617181920212223242526
  1. name: opencode
  2. on:
  3. issue_comment:
  4. types: [created]
  5. jobs:
  6. opencode:
  7. if: |
  8. contains(github.event.comment.body, '/oc') ||
  9. contains(github.event.comment.body, '/opencode')
  10. runs-on: ubuntu-latest
  11. permissions:
  12. id-token: write
  13. steps:
  14. - name: Checkout repository
  15. uses: actions/checkout@v4
  16. with:
  17. fetch-depth: 1
  18. - name: Run opencode
  19. uses: sst/opencode/github@latest
  20. env:
  21. ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
  22. with:
  23. model: anthropic/claude-sonnet-4-20250514