Skip to content

Commit 6cfc574

Browse files
committed
Fix the opencode workflow
1 parent 0cf9522 commit 6cfc574

2 files changed

Lines changed: 2 additions & 19 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ inputs:
1313
description: "Share the opencode session (defaults to true for public repos)"
1414
required: false
1515

16-
prompt:
17-
description: "Prompt to run"
18-
required: false
19-
2016
runs:
2117
using: "composite"
2218
steps:
@@ -27,7 +23,7 @@ runs:
2723
- name: Run opencode
2824
shell: bash
2925
id: run_opencode
30-
run: opencode run -p "${{ inputs.prompt }}" || true
26+
run: opencode rgithub run
3127
env:
3228
MODEL: ${{ inputs.model }}
3329
SHARE: ${{ inputs.share }}

.github/workflows/opencode.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66

77
pull_request:
88

9-
pull_request_comment:
10-
types: [created]
11-
129
pull_request_review:
1310
types: [submitted]
1411

@@ -31,18 +28,8 @@ jobs:
3128
uses: actions/checkout@v5
3229

3330
- name: Run opencode
34-
uses: sst/opencode/github@latest
35-
if: github.event_name != 'pull_request'
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
with:
39-
model: github-copilot/gpt-4.1
40-
41-
- name: Run opencode (for pull request)
42-
uses: ./github/actions/opencode
43-
if: github.event_name == 'pull_request'
31+
uses: ./.github/actions/opencode
4432
env:
4533
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4634
with:
4735
model: github-copilot/gpt-4.1
48-
prompt: ${{ github.event.comment.body }}

0 commit comments

Comments
 (0)