Compare commits

...

2 Commits

Author SHA1 Message Date
graychoi
3dd3907798 fix: add model parameter support to base-action
- Add model field to ClaudeOptions type
- Pass ANTHROPIC_MODEL env var to runClaude function
- Handle --model argument in prepareRunConfig

This allows the model specified in action.yml to be properly passed
to the Claude CLI command.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-19 14:27:49 +09:00
GitHub Actions
5c420d2402 chore: bump Claude Code version to 1.0.56 2025-07-19 00:07:08 +00:00
4 changed files with 7 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ runs:
shell: bash
run: |
# Install Claude Code globally
npm install -g @anthropic-ai/claude-code@1.0.53
npm install -g @anthropic-ai/claude-code@1.0.56
# Run the base-action
cd ${GITHUB_ACTION_PATH}/base-action

View File

@@ -115,7 +115,7 @@ runs:
- name: Install Claude Code
shell: bash
run: npm install -g @anthropic-ai/claude-code@1.0.53
run: npm install -g @anthropic-ai/claude-code@1.0.56
- name: Run Claude Code Action
shell: bash

View File

@@ -26,6 +26,7 @@ async function run() {
appendSystemPrompt: process.env.INPUT_APPEND_SYSTEM_PROMPT,
claudeEnv: process.env.INPUT_CLAUDE_ENV,
fallbackModel: process.env.INPUT_FALLBACK_MODEL,
model: process.env.ANTHROPIC_MODEL,
});
} catch (error) {
core.setFailed(`Action failed with error: ${error}`);

View File

@@ -21,6 +21,7 @@ export type ClaudeOptions = {
claudeEnv?: string;
fallbackModel?: string;
timeoutMinutes?: string;
model?: string;
};
type PreparedConfig = {
@@ -94,6 +95,9 @@ export function prepareRunConfig(
if (options.fallbackModel) {
claudeArgs.push("--fallback-model", options.fallbackModel);
}
if (options.model) {
claudeArgs.push("--model", options.model);
}
if (options.timeoutMinutes) {
const timeoutMinutesNum = parseInt(options.timeoutMinutes, 10);
if (isNaN(timeoutMinutesNum) || timeoutMinutesNum <= 0) {