Fail instead of warn, when nextflow help doesn't work

This commit is contained in:
mashehu 2023-10-11 16:29:12 +02:00
parent 8e5e5dbd4c
commit 7e43c4af0e
No known key found for this signature in database

View file

@ -94,9 +94,8 @@ async function run(): Promise<void> {
await exec.exec("nextflow", ["help"]) await exec.exec("nextflow", ["help"])
} catch (e: unknown) { } catch (e: unknown) {
if (e instanceof Error) { if (e instanceof Error) {
core.warning( // fail workflow if Nextflow run does not succeed
"Nextflow appears to have installed correctly, but an error was thrown while running it." core.setFailed(`Could not run 'nextflow help'. Error: ${e.message}`)
)
} }
} }
} }