diff options
Diffstat (limited to 'github/action.yml')
| -rw-r--r-- | github/action.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/github/action.yml b/github/action.yml new file mode 100644 index 000000000..2f9c952b0 --- /dev/null +++ b/github/action.yml @@ -0,0 +1,29 @@ +name: "opencode GitHub Action" +description: "Run opencode in GitHub Actions workflows" +branding: + icon: "code" + color: "orange" + +inputs: + model: + description: "Model to use" + required: false + + share: + description: "Share the opencode session (defaults to true for public repos)" + 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 }} |
