summaryrefslogtreecommitdiffhomepage
path: root/github/action.yml
diff options
context:
space:
mode:
Diffstat (limited to 'github/action.yml')
-rw-r--r--github/action.yml29
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 }}