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}`) } } }