From cae2ff783cf775c9ddb7b8b390a0219cfa6e4220 Mon Sep 17 00:00:00 2001 From: Ulrik Boll Djurtoft Date: Wed, 5 Jun 2024 23:43:35 +0200 Subject: [PATCH] Allow non-0 exit codes --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ea0c384..7061fbb 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,10 @@ async function run() { await exec.exec(`docker pull ${image} -q`); let command = (`docker run --user 0:0 -v ${workspace}/${output}:/data --network="host" ` + `-t ${image} ${options} ${host}`); try { - await exec.exec(command); + let execOptions = { + ignoreReturnCode: true + }; + await exec.exec(command, [], execOptions); let path = workspace + '/' + output; let reportFile = fs.readdirSync(path).filter(fn => fn.startsWith(host) && fn.endsWith('.json'))[0];