Skip to content

Commit 6c17791

Browse files
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.
1 parent 59ba446 commit 6c17791

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Build
22

33
on:
4-
# Run anytime a new commit is pushed to main.
5-
push:
6-
branches: [main]
7-
84
# Run on every PR that is opened against main.
95
pull_request:
106
branches: [main]
117

128
# Run on a schedule (daily @ 6am Eastern time).
9+
# These run against the default branch (main).
1310
schedule:
1411
- cron: "0 11 * * *"
1512

0 commit comments

Comments
 (0)