fix(workflow): distinguish watch completion from timeout and cancellation

This commit is contained in:
gitea committed 2026-10-20 18:06:53 +08:00
1 parent fac81b08e8
commit 98ceb85a5c
9 files changed
+187 -124

No files matched your search

+3 -3
View File
@@ -94,19 +94,19 @@ export async function handleWorkflowTailCommand(
return {
stdout: printJson(report, runtime.outputOptions),
stderr: "",
exitCode: report.hasFailures ? 1 : 0,
exitCode: report.hasFailures || report.timedOut || report.cancelled ? 1 : 0,
};
}
return {
stdout: runtime.writeStdout ? "" : outputChunks.join(""),
stderr: "",
exitCode: report.hasFailures ? 1 : 0,
exitCode: report.hasFailures || report.timedOut || report.cancelled ? 1 : 0,
};
}
return {
stdout: runtime.writeStdout ? "" : outputChunks.join(""),
stderr: "",
exitCode: report.hasFailures ? 1 : 0,
exitCode: report.hasFailures || report.timedOut || report.cancelled ? 1 : 0,
};
}