opencode.yml 726 B

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