GeezerVison is showing github.com — adjust action · steipete/opencode@1c1380d
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: github/action.yml +4-18Lines changed: 4 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,15 +6,11 @@ branding: |
6 | 6 |
|
7 | 7 | inputs: |
8 | 8 | model: |
9 | | - description: "The model to use with opencode. Takes the format of `provider/model`." |
| 9 | + description: "Model to use" |
10 | 10 | required: true |
11 | 11 |
|
12 | 12 | 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)" |
18 | 14 | required: false |
19 | 15 |
|
20 | 16 | runs: |
@@ -24,20 +20,10 @@ runs: |
24 | 20 | shell: bash |
25 | 21 | run: curl -fsSL https://opencode.ai/install | bash |
26 | 22 |
|
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 | | -
|
37 | 23 | - name: Run opencode |
38 | 24 | shell: bash |
39 | | - run: bun ${GITHUB_ACTION_PATH}/index.ts |
| 25 | + id: run_opencode |
| 26 | + run: opencode github run |
40 | 27 | env: |
41 | 28 | MODEL: ${{ inputs.model }} |
42 | 29 | SHARE: ${{ inputs.share }} |
43 | | - TOKEN: ${{ inputs.token }} |