Skip to content

Commit 122e2c9

Browse files
committed
ci: only run ci on pull request
We trigger CI on both "push" and "pull_request". The latter is necessary to get CI results for people opening a PR from their own fork. The former is not strictly necessary, but it's nice to get the PR running as soon as we know about the commits, so that it's often finished by the time you've finished opening up the PR. But this does result in duplicate runs for branches pushed directly into the repo: once when the branch is pushed, and once when the PR is opened. We could get around this by skipping the workflow when we've already got the same job running, but that's more complicated. Let's just drop the "push" trigger. The CI here is pretty fast anyway (at least once the bundler bits are all cached, but that should be the case for any PR that doesn't update gems).
1 parent 2c0a5ee commit 122e2c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI/PR
2-
on: [push, pull_request]
2+
on: pull_request
33

44
jobs:
55
build:

0 commit comments

Comments
 (0)