Ref to a feature/branch during template include not woring

Hi all,

I’ve an include for CI/CD Templates. But I want to ref to a feature branch. This seems not to be working because the pipeline still executes the default from main branch. Not my changes from the feature branch

include:
  - project: 'irdi/ci-cd-templates'
    ref: "feature/IRDI-2325-google-artifactory"
    file: '/default/split-java-CD/.index.yml'

package-push-docker-master:
  extends: .package-docker
  rules:
    - if: $CI_COMMIT_REF_NAME == "master"
    - when: never
  variables:
    DOCKER_FILE_NAME: Dockerfile
    IMAGE_NAME: img-${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}

The main .package-docker pushes to the old gcp registry. The Feature Branch should start a child pipeline with more action. But this is never happen. Just the old (default) .package-docker

Is ref: allowed/supported during template includes?

Regards,

Tom