Skip trybots on changes to ./github

Presubmit is still required to pass

Change-Id: I5e687fe5ebef983e87c2407baf0b244226aa00e1
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/159020
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
diff --git a/infra/config/global/generated/commit-queue.cfg b/infra/config/global/generated/commit-queue.cfg
index f4e8730..7771008 100644
--- a/infra/config/global/generated/commit-queue.cfg
+++ b/infra/config/global/generated/commit-queue.cfg
@@ -37,9 +37,31 @@
     tryjob {
       builders {
         name: "chromium/try/android-dawn-arm-rel"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "chromium/try/android-dawn-arm64-rel"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "chromium/try/dawn-try-mac-arm64-rel"
@@ -51,30 +73,129 @@
       }
       builders {
         name: "chromium/try/linux-dawn-rel"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "chromium/try/mac-dawn-rel"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "chromium/try/win-dawn-rel"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/linux-clang-dbg-x64"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/linux-clang-dbg-x86"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/linux-clang-rel-x64"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/linux-clang-rel-x86"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/mac-dbg"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/mac-rel"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/presubmit"
@@ -82,21 +203,87 @@
       }
       builders {
         name: "dawn/try/win-clang-dbg-x64"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/win-clang-dbg-x86"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/win-clang-rel-x64"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/win-clang-rel-x86"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/win-msvc-dbg-x64"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       builders {
         name: "dawn/try/win-msvc-rel-x64"
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: ".*"
+        }
+        location_filters {
+          gerrit_host_regexp: ".*"
+          gerrit_project_regexp: ".*"
+          path_regexp: "\\.github/.+"
+          exclude: true
+        }
       }
       retry_config {
         single_quota: 1
diff --git a/infra/config/global/main.star b/infra/config/global/main.star
index 276fb94..3b8cb20 100755
--- a/infra/config/global/main.star
+++ b/infra/config/global/main.star
@@ -386,6 +386,13 @@
         luci.cq_tryjob_verifier(
             cq_group = "Dawn-CQ",
             builder = "dawn:try/" + name,
+            location_filters = [
+                cq.location_filter(path_regexp = ".*"),
+                cq.location_filter(
+                    path_regexp = "\\.github/.+",
+                    exclude = True,
+                ),
+            ],
         )
 
         # These builders run fine unbranched on branch CLs, so add them to the
@@ -439,6 +446,13 @@
         luci.cq_tryjob_verifier(
             cq_group = "Dawn-CQ",
             builder = "chromium:try/{os}-dawn-{arch}-rel".format(os = os, arch = arch),
+            location_filters = [
+                cq.location_filter(path_regexp = ".*"),
+                cq.location_filter(
+                    path_regexp = "\\.github/.+",
+                    exclude = True,
+                ),
+            ],
         )
         _add_branch_verifiers(
             _os_arch_to_branch_builder["{os}-{arch}".format(os = os, arch = arch)],
@@ -449,6 +463,13 @@
         luci.cq_tryjob_verifier(
             cq_group = "Dawn-CQ",
             builder = "chromium:try/{}-dawn-rel".format(os),
+            location_filters = [
+                cq.location_filter(path_regexp = ".*"),
+                cq.location_filter(
+                    path_regexp = "\\.github/.+",
+                    exclude = True,
+                ),
+            ],
         )
         _add_branch_verifiers(_os_arch_to_branch_builder[os], os)