Skip to content

Commit

Permalink
Don't build on branch pushes except for main
Browse files Browse the repository at this point in the history
We already have pull_request, doing it for all pushes too means
duplicate builds for PRs. To do a build without a full PR yet,
we can use draft PRs.
  • Loading branch information
robinst committed Jun 24, 2023
1 parent 00a8560 commit 519de1b
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,7 +1,11 @@
# Based on https://github.com/actions-rs/meta/blob/master/recipes/msrv.md

name: ci
on: [push, pull_request]
on:
pull_request:
push:
branches:
- main

jobs:
check:
Expand Down

0 comments on commit 519de1b

Please sign in to comment.