Skip to content

Commit

Permalink
Merge pull request #23 from mashehu/break-on-error
Browse files Browse the repository at this point in the history
Fail instead of warn, when `nextflow help` doesn't work
  • Loading branch information
edmundmiller authored Oct 11, 2023
2 parents 8e5e5db + 7e43c4a commit 441990d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
}
}
Expand Down

0 comments on commit 441990d

Please sign in to comment.