Rules changes with CI_PIPELINE_SOURCE does not work

I am trying to limit gitlab to runa job only when the trigger is a merge request or subsequent pushes to the source branch.

Below is my gitlab-ci yaml

But even if i change gilab-ci.yaml the pipeline triggers, also it runs when i change the file inside awe/src/.

I tried it to trigger a downstream-pipeline using these rules, it didn’t work. I also tried to run a local script as well. But no luck.

Any help will be appreciated