mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 09:49:56 +00:00
Fail instead of warn, when nextflow help
doesn't work
This commit is contained in:
parent
8e5e5dbd4c
commit
7e43c4af0e
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