diff --git a/internal/config/load.go b/internal/config/load.go index 5bd1f01b..34f0b482 100644 --- a/internal/config/load.go +++ b/internal/config/load.go @@ -537,6 +537,17 @@ func mergeJobsSlice(src, dest []interface{}) []interface{} { destSubJobs = mergeJobsSlice(srcSubJobs, destSubJobs) } + switch srcRun := srcJob["run"].(type) { + case string: + switch destRun := destJob["run"].(type) { + case string: + newRun := strings.ReplaceAll(srcRun, CMD, destRun) + srcJob["run"] = newRun + default: + } + default: + } + maps.Merge(srcJob, destJob) if len(destSubJobs) != 0 {