fix: write execution file when SDK throws (#1255)

This commit is contained in:
JerryLee
2026-05-14 15:37:28 -07:00
committed by GitHub
parent 0756f6ef2b
commit 1450f658d3
6 changed files with 157 additions and 10 deletions
+2
View File
@@ -6,6 +6,7 @@ import { runClaude } from "./run-claude";
import { setupClaudeCodeSettings } from "./setup-claude-code-settings";
import { validateEnvironmentVariables } from "./validate-env";
import { installPlugins } from "./install-plugins";
import { setExecutionFileOutputIfPresent } from "./execution-file";
async function run() {
try {
@@ -62,6 +63,7 @@ async function run() {
core.setOutput("structured_output", result.structuredOutput);
}
} catch (error) {
setExecutionFileOutputIfPresent();
core.setFailed(`Action failed with error: ${error}`);
core.setOutput("conclusion", "failure");
process.exit(1);