Dynamic include

Hello,

I would like to have dynamic templates of gitlab-ci file based on the include - definition, CI_PROJECT_NAME - pre-defined env. variable and CUSTOM_BUILD - custom env. variable.
The schema should look like:

But because of some reason, gitlab doesn’t include gitlab-ci.yml file and as result there is no HELLO_FROM_SECOND_INCLUDE env. variable for microserv1

What may be the reason for such behaviour?