Don't fail post start-proxy action if killing the proxy process fails

Otherwise logs won't get uploaded as artifact, even in debug mode
This commit is contained in:
Michael B. Gale
2025-03-31 16:21:21 +01:00
parent 6e35f86a20
commit b24bd4a46f
3 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -22,7 +22,11 @@ async function runWrapper() {
// Kill the running proxy
const pid = core.getState("proxy-process-pid");
if (pid) {
process.kill(Number(pid));
try {
process.kill(Number(pid));
} catch (error) {
logger.error(`Failed to kill proxy process: ${getErrorMessage(error)}`);
}
}
const config = await configUtils.getConfig(