From 6c17791458bd25081c3daca835fc8bef2123ccdc Mon Sep 17 00:00:00 2001 From: Shoumyo Chakravorti Date: Wed, 20 Aug 2025 15:23:26 -0400 Subject: [PATCH] ci: do not run workflow on pushes to `main` In the event that a developer is using a personal access token that does not have `workflow` permissions, pushing to `main` on the developer's fork will fail. Since we run the workflow on PRs, additionally checking commits to `main` seems redundant anyway. Do not run checks on pushes to main to avoid disrupting developers. --- .github/workflows/build.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6d436ee4bb..4bd5ad1971 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,15 +1,12 @@ name: Build on: - # Run anytime a new commit is pushed to main. - push: - branches: [main] - # Run on every PR that is opened against main. pull_request: branches: [main] # Run on a schedule (daily @ 6am Eastern time). + # These run against the default branch (main). schedule: - cron: "0 11 * * *"