Skip to content

Commit 1c31d25

Browse files
authored
CI: only run on PR and push to main (#372)
This avoids running jobs twice and unneccessarily running gitlint against in-progress work.
1 parent 4ed9761 commit 1c31d25

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/checks.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Tests and Checks
22

3-
on: [push, pull_request]
3+
# Only run CI on pushes to main and pull requests
4+
# We don't run CI on other branches, but those should be merged into main via a PR anyways which will trigger CI before the merge.
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
412

513
jobs:
614
checks:

0 commit comments

Comments
 (0)