Why cann't work rules for include
I have next code
include:
- local: "/ci-cd/reminder.yml"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $REVIEW_REMINDER
- local: "/ci-cd/master.yml"
rules:
- if: $CI_COMMIT_BRANCH == "master" && $CI_PIPELINE_SOURCE != "schedule"
When I pushed commit in master branch I see that pipe for master is started.
But, when a run schedule I get pipe with jobs from both files (reminder.yml and master.yml). I don't understand what my mistake is.
When I run schedule I expect that only reminder.yml will include on pipe