Skip to content

build gha workflow is failing due to onComplete handler #73

@kelly-sovacool

Description

@kelly-sovacool

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:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcicontinuous integration / github actions workflows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions