Nowadays you can set GIT_SUBMODULE_UPDATE_FLAGS: --remote in your gitlab ci file. This will check out the latest tip of your branch defined in .gitmodules.
GIT_SUBMODULE_UPDATE_FLAGS: --remote
.gitmodules
See gitlab ci doc