diff options
| author | Aiden Cline <[email protected]> | 2025-10-16 13:15:14 -0500 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-10-16 13:15:27 -0500 |
| commit | 1c1380d3c8163393c7133981d43c9ec5abf4da43 (patch) | |
| tree | aa18965882b7e1f75912dc9900f6663021d3cb4b /github | |
| parent | 10680f0cf00d507be8897c9101bb96a40efefdf9 (diff) | |
| download | opencode-1c1380d3c8163393c7133981d43c9ec5abf4da43.tar.gz opencode-1c1380d3c8163393c7133981d43c9ec5abf4da43.zip | |
adjust action
Diffstat (limited to 'github')
| -rw-r--r-- | github/action.yml | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/github/action.yml b/github/action.yml index 9893bc808..0b7367ded 100644 --- a/github/action.yml +++ b/github/action.yml @@ -6,15 +6,11 @@ branding: inputs: model: - description: "The model to use with opencode. Takes the format of `provider/model`." + description: "Model to use" required: true share: - description: "Whether to share the opencode session. Defaults to true for public repositories." - required: false - - token: - 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." + description: "Share the opencode session (defaults to true for public repos)" required: false runs: @@ -24,20 +20,10 @@ runs: shell: bash run: curl -fsSL https://opencode.ai/install | bash - - name: Install bun - shell: bash - run: npm install -g bun - - - name: Install dependencies - shell: bash - run: | - cd ${GITHUB_ACTION_PATH} - bun install - - name: Run opencode shell: bash - run: bun ${GITHUB_ACTION_PATH}/index.ts + id: run_opencode + run: opencode github run env: MODEL: ${{ inputs.model }} SHARE: ${{ inputs.share }} - TOKEN: ${{ inputs.token }} |
