Skip to content

Commit e9c555a

Browse files
committed
Trigger CI only on PR branch commits
Why these changes are being introduced: Formerly, CI was running time a commit was pushed to Github, for any branch, regardless of an associated PR. How this addresses that need: An update to `.github/workflows/ci.yml` makes it so CI is only run when a PR is opened and/or a commit is pushed to a branch with an open PR. Side effects of this change: * CI will not run for pushes to a branch without an open PR. Relevant ticket(s): * None
1 parent 49b63e7 commit e9c555a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: CI
2-
on: push
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- '.github/**'
36
jobs:
47
test:
58
# TODO: move this into a shared workflow, https://github.com/MITLibraries/.github/tree/main/.github/workflows

0 commit comments

Comments
 (0)