Skip to content

Commit

Permalink
Reduce repetitive CI builds when pushing to the main repository (#241)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jstasiak authored Dec 13, 2023
1 parent c7d1f6e commit 4b96e21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

jobs:
build:
Expand Down

0 comments on commit 4b96e21

Please sign in to comment.