mirror of
https://github.com/anomalyco/opencode.git
synced 2026-02-01 22:48:16 +00:00
Co-authored-by: Github Action <action@github.com> Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
35 lines
763 B
YAML
35 lines
763 B
YAML
name: "opencode GitHub Action"
|
|
description: "Run opencode in GitHub Actions workflows"
|
|
branding:
|
|
icon: "code"
|
|
color: "orange"
|
|
|
|
inputs:
|
|
model:
|
|
description: "Model to use"
|
|
required: true
|
|
|
|
share:
|
|
description: "Share the opencode session (defaults to true for public repos)"
|
|
required: false
|
|
|
|
prompt:
|
|
description: "Custom prompt to override the default prompt"
|
|
required: false
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install opencode
|
|
shell: bash
|
|
run: curl -fsSL https://opencode.ai/install | bash
|
|
|
|
- name: Run opencode
|
|
shell: bash
|
|
id: run_opencode
|
|
run: opencode github run
|
|
env:
|
|
MODEL: ${{ inputs.model }}
|
|
SHARE: ${{ inputs.share }}
|
|
PROMPT: ${{ inputs.prompt }}
|