From 3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 25 Jul 2025 17:34:47 -0400 Subject: wip: github actions --- github/action.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 github/action.yml (limited to 'github/action.yml') 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 }} -- cgit v1.2.3