MDLSITE-2100 ci: need to checkout from detached upgrade HEAD