'error in bitbucket-pipelines.yml at [pipelines > step > condition]. To be precise: At least one condition is required

I created a bitbucket pipelines that looks like this:

pipelines:
  custom: 
    dbt-run:
      - step:
          name: 'Validate'
          script:
            - cd dbt_4flow
            - dbt compile
          condition:
            changesets:
            includePaths:
             - "dbt_4flow/*"  

However, when I try to run it via the UI, I get this error even though I have already given a condition. What am I doing wrong? Is it the syntax?

There is an error in your bitbucket-pipelines.yml at [pipelines > custom > dbt-run > 0 > step > condition]. To be precise: At least one condition is required 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source