From bf4ff668528f789bd12480de2dfbe68cab73dcc0 Mon Sep 17 00:00:00 2001 From: Kevin Gleason Date: Tue, 18 Jul 2023 10:55:38 -0400 Subject: [PATCH] Only run scheduled build and test CI on main repo (#1689) Currently this CI runs in all forked repos, which provides little added benefit to the runs that occur in main, and when this job fails, it ends up doubling the amount of notifications. --- .github/workflows/buildAndTestCMake.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/buildAndTestCMake.yml b/.github/workflows/buildAndTestCMake.yml index 3688cf90678..3afa1086c3b 100644 --- a/.github/workflows/buildAndTestCMake.yml +++ b/.github/workflows/buildAndTestCMake.yml @@ -34,6 +34,8 @@ concurrency: jobs: cmake-build: + # Only run scheduled CI on main repo + if: (github.repository == 'openxla/stablehlo' || github.event_name != 'schedule') name: "cmake-build ${{ github.event_name == 'schedule' && '(llvm-project@HEAD)' || ''}}" env: LLVM_PROJECT_DIR: "llvm-project"