From 4be101cd10c799e0e4a1ba53f5c429210a1ac9a2 Mon Sep 17 00:00:00 2001 From: wenovus Date: Fri, 19 Jun 2020 18:54:45 -0700 Subject: [PATCH] Fix bug --- cmd_gen/main.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd_gen/main.go b/cmd_gen/main.go index 61c9092..349f2db 100644 --- a/cmd_gen/main.go +++ b/cmd_gen/main.go @@ -371,11 +371,9 @@ func main() { } compatReports = commonci.ValidatorAndVersionsDiff(compatReports, skippedValidators) - if !pushToMaster { - // Notify later CI steps of the validators that should be reported as a compatibility report. - if err := ioutil.WriteFile(commonci.CompatReportValidatorsFile, []byte(compatReports), 0444); err != nil { - log.Fatalf("error while writing compatibility report validators file %q: %v", commonci.CompatReportValidatorsFile, err) - } + // Notify later CI steps of the validators that should be reported as a compatibility report. + if err := ioutil.WriteFile(commonci.CompatReportValidatorsFile, []byte(compatReports), 0444); err != nil { + log.Fatalf("error while writing compatibility report validators file %q: %v", commonci.CompatReportValidatorsFile, err) } _, compatValidatorsMap := commonci.GetValidatorAndVersionsFromString(compatReports)