Skip to content

Commit 4b96e21

Browse files
authored
Reduce repetitive CI builds when pushing to the main repository (#241)
I like to push branches to the upstream repository and create PRs from that. With the previous configuration all jobs were triggered twice – once for the push event, once for the pull_request event. That was wasting resources and creating noise in the PRs.
1 parent c7d1f6e commit 4b96e21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
610
build:

0 commit comments

Comments
 (0)