mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-10-18 10:23:10 +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"])
|
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