'How to solve a yaml invalid in gitlab ci

This is my first time deploying an application, so things seem a little confusing to me. When I try to run a CI/CD test I get the error: jobs:docker:rules:rule if invalid expression syntax

When I look to the .gitlab-ci.yml file I have (I'm changing the name of some variables here):

variables:
    rota_bian: recarteirizacao
    torre: areacorp
    sigla: aac


include:
    - project: devops/gitlab-ci-pipelines
      ref: master
      file: Stacks/python-3.8-v1.0.0/clusters/OpenShift/deploy-v1.0.0.yml

but nothing seems off. Where I'm making a mistake?



Sources

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

Source: Stack Overflow

Solution Source