Error main.nf:7:1: Statements cannot be mixed with script declarations -- move statements into a process, workflow, or function
│ 5 |
│ 6 |
│ 7 | workflow.onComplete {
│ | ^^^^^^^^^^^^^^^^^^^^^
│ 8 | if (!workflow.stubRun && !workflow.commandLine.contains('-preview'
╰ 9 | def message = Utils.spooker(workflow)
It looks like the nextflow syntax has updated and onComplete has to be inside a workflow block now
the build workflow is failing: https://github.com/CCBR/CCBR_NextflowTemplate/actions/runs/26831735308/job/79114630363
The key part of the error message is this:
It looks like the nextflow syntax has updated and onComplete has to be inside a workflow block now