Skip to content

Commit 1c1380d

Browse files
committed
adjust action
1 parent 10680f0 commit 1c1380d

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

github/action.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ branding:
66

77
inputs:
88
model:
9-
description: "The model to use with opencode. Takes the format of `provider/model`."
9+
description: "Model to use"
1010
required: true
1111

1212
share:
13-
description: "Whether to share the opencode session. Defaults to true for public repositories."
14-
required: false
15-
16-
token:
17-
description: "Optional GitHub access token for performing operations such as creating comments, committing changes, and opening pull requests. Defaults to the installation access token from the opencode GitHub App."
13+
description: "Share the opencode session (defaults to true for public repos)"
1814
required: false
1915

2016
runs:
@@ -24,20 +20,10 @@ runs:
2420
shell: bash
2521
run: curl -fsSL https://opencode.ai/install | bash
2622

27-
- name: Install bun
28-
shell: bash
29-
run: npm install -g bun
30-
31-
- name: Install dependencies
32-
shell: bash
33-
run: |
34-
cd ${GITHUB_ACTION_PATH}
35-
bun install
36-
3723
- name: Run opencode
3824
shell: bash
39-
run: bun ${GITHUB_ACTION_PATH}/index.ts
25+
id: run_opencode
26+
run: opencode github run
4027
env:
4128
MODEL: ${{ inputs.model }}
4229
SHARE: ${{ inputs.share }}
43-
TOKEN: ${{ inputs.token }}

0 commit comments

Comments
 (0)