Only run CI workflow on push to main

The pull request event should handle running it on other branches, assuming that they're at least submitted as draft PRs. Right now this is running twice on PR branches which is unnecessary.
This commit is contained in:
Brandon Evans 2021-01-04 19:37:34 -07:00
parent ef582113cf
commit d38ea666b8
No known key found for this signature in database
GPG key ID: D58A4B8DB64F8E93

View file

@ -1,5 +1,11 @@
name: CI
on: [push, pull_request]
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: macOS-11.0