Fix #29040 `handleSchedules` should be called only if `DetectWorkflows` should detect schedule workflows
MigrateRepository