瀏覽代碼

If in dry run mode, do not run the pipeline

Vadim Markovtsev 7 年之前
父節點
當前提交
cc8c37e76e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      cmd/hercules/main.go

+ 3 - 0
cmd/hercules/main.go

@@ -219,6 +219,9 @@ func main() {
 		}
 	}
 	pipeline.Initialize(facts)
+	if dryRun, _ := facts[hercules.ConfigPipelineDryRun].(bool); dryRun {
+		return
+	}
 	results, err := pipeline.Run(commits)
 	if err != nil {
 		panic(err)