mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-26 03:09:56 +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"])
|
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}`)
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue