Merge pull request #23 from mashehu/break-on-error

Fail instead of warn, when `nextflow help` doesn't work
This commit is contained in:
Edmund Miller 2023-10-11 13:36:11 -05:00 committed by GitHub
commit 441990da28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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