Switch from master to main branch

This changes switch infra configuration to use main branch.

Change-Id: Id713b0bc6007c7ee7290b30fd10b9cc389f0dcb2
Reviewed-on: https://gn-review.googlesource.com/c/gn/+/11421
Commit-Queue: Petr Hosek <phosek@google.com>
Reviewed-by: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: Brett Wilson <brettw@chromium.org>
diff --git a/infra/config/generated/cr-buildbucket.cfg b/infra/config/generated/cr-buildbucket.cfg
index 9b61276..5124735 100644
--- a/infra/config/generated/cr-buildbucket.cfg
+++ b/infra/config/generated/cr-buildbucket.cfg
@@ -23,7 +23,7 @@
       recipe {
         name: "gn"
         cipd_package: "infra/recipe_bundles/gn.googlesource.com/gn"
-        cipd_version: "refs/heads/master"
+        cipd_version: "refs/heads/main"
       }
       execution_timeout_secs: 3600
       service_account: "gn-ci-builder@chops-service-accounts.iam.gserviceaccount.com"
@@ -41,7 +41,7 @@
       recipe {
         name: "gn"
         cipd_package: "infra/recipe_bundles/gn.googlesource.com/gn"
-        cipd_version: "refs/heads/master"
+        cipd_version: "refs/heads/main"
       }
       execution_timeout_secs: 3600
       caches {
@@ -63,7 +63,7 @@
       recipe {
         name: "gn"
         cipd_package: "infra/recipe_bundles/gn.googlesource.com/gn"
-        cipd_version: "refs/heads/master"
+        cipd_version: "refs/heads/main"
       }
       execution_timeout_secs: 3600
       caches {
@@ -101,7 +101,7 @@
       recipe {
         name: "gn"
         cipd_package: "infra/recipe_bundles/gn.googlesource.com/gn"
-        cipd_version: "refs/heads/master"
+        cipd_version: "refs/heads/main"
       }
       execution_timeout_secs: 3600
       service_account: "gn-try-builder@chops-service-accounts.iam.gserviceaccount.com"
@@ -119,7 +119,7 @@
       recipe {
         name: "gn"
         cipd_package: "infra/recipe_bundles/gn.googlesource.com/gn"
-        cipd_version: "refs/heads/master"
+        cipd_version: "refs/heads/main"
       }
       execution_timeout_secs: 3600
       caches {
@@ -141,7 +141,7 @@
       recipe {
         name: "gn"
         cipd_package: "infra/recipe_bundles/gn.googlesource.com/gn"
-        cipd_version: "refs/heads/master"
+        cipd_version: "refs/heads/main"
       }
       execution_timeout_secs: 3600
       caches {
diff --git a/infra/config/generated/luci-milo.cfg b/infra/config/generated/luci-milo.cfg
index a649d0d..0af1755 100644
--- a/infra/config/generated/luci-milo.cfg
+++ b/infra/config/generated/luci-milo.cfg
@@ -8,7 +8,7 @@
   id: "gn"
   name: "gn"
   repo_url: "https://chromium.googlesource.com/external/github.com/llvm/llvm-project"
-  refs: "regexp:refs/heads/master"
+  refs: "regexp:refs/heads/main"
   manifest_name: "REVISION"
   builders {
     name: "buildbucket/luci.gn.ci/linux"
diff --git a/infra/config/main.star b/infra/config/main.star
index 04c761f..2e7ea04 100755
--- a/infra/config/main.star
+++ b/infra/config/main.star
@@ -49,7 +49,7 @@
         executable = luci.recipe(
             name = "gn",
             cipd_package = "infra/recipe_bundles/gn.googlesource.com/gn",
-            cipd_version = "refs/heads/master",
+            cipd_version = "refs/heads/main",
         ),
         caches = caches,
         service_account = "gn-%s-builder@chops-service-accounts.iam.gserviceaccount.com" % bucket,
@@ -70,7 +70,7 @@
     name = "gn",
     title = "gn",
     repo = "https://chromium.googlesource.com/external/github.com/llvm/llvm-project",
-    refs = ["refs/heads/master"],
+    refs = ["refs/heads/main"],
     favicon = "https://storage.googleapis.com/chrome-infra-public/logo/favicon.ico",
 )