opencode.yml 541 B

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