Skip to content

Commit

Permalink
CI: only build once for pull requests, manual trigger for branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Jan 24, 2022
1 parent 0ce93c9 commit 050f106
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Note: can't use build matrix because our steps are not cross-platform...
name: CI

on: [push, pull_request]
# Avoid duplicate builds for pull requests, allow manual trigger.
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

defaults:
run:
Expand Down

0 comments on commit 050f106

Please sign in to comment.