Skip to content

Commit adf48f1

Browse files
authored
Only run CI on pushes to main/master and pull requests (#7883)
Currently, when a maintainer opens a pull request from a branch in the typeshed repository (instead of a fork), CI is run twice: once for the PR and once for the push. This not only wastes CI minutes (and it seems we're running into some limits lately), but also makes CI output twice as large and more difficult to process. The disadvantage is that a PR needs to be opened to run CI. Alternatively, CI can be triggered manually.
1 parent e7cbde0 commit adf48f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Test
33
on:
44
workflow_dispatch:
55
push:
6+
branches:
7+
- main
8+
- master
69
pull_request:
710

811
permissions:

0 commit comments

Comments
 (0)