Address PR review feedback for git actions

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-02-11 17:56:16 -08:00
1 parent 98eb87f5cd
commit 533dbdfbda
6 files changed
+135 -21

No files matched your search

+7 -2
View File
@@ -117,9 +117,11 @@ async function runCodexJson<T>({
"codex-schema",
JSON.stringify(outputSchemaJson),
);
const outputPath = await writeTempFile("codex-output", "");
let outputPath: string | null = null;
try {
outputPath = await writeTempFile("codex-output", "");
await runProcess(
"codex",
[
@@ -154,7 +156,10 @@ async function runCodexJson<T>({
return parse(parsedJson);
} finally {
await Promise.all([safeUnlink(schemaPath), safeUnlink(outputPath)]);
await Promise.all([
safeUnlink(schemaPath),
...(outputPath ? [safeUnlink(outputPath)] : []),
]);
}
}