diff options
| author | Matt Silverlock <[email protected]> | 2026-02-20 08:20:54 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-20 13:20:54 +0000 |
| commit | 2410593023d2c61f05123c9b0faf189a28dfbeee (patch) | |
| tree | 1babe3639eac3f0e92d4a0c7a01b347989d90ccc /packages | |
| parent | 1de12604cf74aaeacbff54d7feb18c7d41bea2b1 (diff) | |
| download | opencode-2410593023d2c61f05123c9b0faf189a28dfbeee.tar.gz opencode-2410593023d2c61f05123c9b0faf189a28dfbeee.zip | |
fix(github): support variant in github action and opencode github run (#14431)
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/github.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts index 9e28ea16c..672e73d49 100644 --- a/packages/opencode/src/cli/cmd/github.ts +++ b/packages/opencode/src/cli/cmd/github.ts @@ -450,6 +450,7 @@ export const GithubRunCommand = cmd({ const isWorkflowDispatchEvent = context.eventName === "workflow_dispatch" const { providerID, modelID } = normalizeModel() + const variant = process.env["VARIANT"] || undefined const runId = normalizeRunId() const share = normalizeShare() const oidcBaseUrl = normalizeOidcBaseUrl() @@ -912,6 +913,7 @@ export const GithubRunCommand = cmd({ const result = await SessionPrompt.prompt({ sessionID: session.id, messageID: Identifier.ascending("message"), + variant, model: { providerID, modelID, @@ -965,6 +967,7 @@ export const GithubRunCommand = cmd({ const summary = await SessionPrompt.prompt({ sessionID: session.id, messageID: Identifier.ascending("message"), + variant, model: { providerID, modelID, |
