From 7e43c4af0ee3e5827718a808a8e7de169a7c99b9 Mon Sep 17 00:00:00 2001 From: mashehu Date: Wed, 11 Oct 2023 16:29:12 +0200 Subject: [PATCH] Fail instead of warn, when `nextflow help` doesn't work --- src/main.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 6fe3913..1ab2485 100644 --- a/src/main.ts +++ b/src/main.ts @@ -94,9 +94,8 @@ async function run(): Promise { await exec.exec("nextflow", ["help"]) } catch (e: unknown) { if (e instanceof Error) { - core.warning( - "Nextflow appears to have installed correctly, but an error was thrown while running it." - ) + // fail workflow if Nextflow run does not succeed + core.setFailed(`Could not run 'nextflow help'. Error: ${e.message}`) } } }