Main repo with submodule test

I have a main repo which have running CIRCLE CI. There is a submodule. When I do a PR in submodule I managed to trigger main circleCI jobs. The question is how do I tell it to run the jobs with code in the PR branch instead of the master branch of submodule?