Skip to content

Commit dd07c8b

Browse files
committed
🐛 Template: only run CI for push to main
In the current event trigger configuration for `ci.yml`, each CI job would run twice (once for the `push` trigger, once for the `pull_request` one). Here we restrict the `push` trigger to only run for the `main` branch.
1 parent 7da8114 commit dd07c8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

template/.github/workflows/.ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: ci
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
jobs:
610
pre-commit:

0 commit comments

Comments
 (0)