mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 01:46:04 +00:00
Merge pull request #23 from mashehu/break-on-error
Fail instead of warn, when `nextflow help` doesn't work
This commit is contained in:
commit
441990da28
1 changed files with 2 additions and 3 deletions
|
@ -94,9 +94,8 @@ async function run(): Promise<void> {
|
|||
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}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue