action.yml 632 B

1234567891011121314151617181920212223242526272829
  1. name: "opencode GitHub Action"
  2. description: "Run opencode in GitHub Actions workflows"
  3. branding:
  4. icon: "code"
  5. color: "orange"
  6. inputs:
  7. model:
  8. description: "Model to use"
  9. required: false
  10. share:
  11. description: "Share the opencode session (defaults to true for public repos)"
  12. required: false
  13. runs:
  14. using: "composite"
  15. steps:
  16. - name: Install opencode
  17. shell: bash
  18. run: curl -fsSL https://opencode.ai/install | bash
  19. - name: Run opencode
  20. shell: bash
  21. id: run_opencode
  22. run: opencode github run
  23. env:
  24. MODEL: ${{ inputs.model }}
  25. SHARE: ${{ inputs.share }}