Skip to content

Commit 72fbe99

Browse files
committed
CI: do not run build and test actions twice on PRs
1 parent b672873 commit 72fbe99

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Build
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
39

410
jobs:
511
build:

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Test
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
39

410
jobs:
511
test:

0 commit comments

Comments
 (0)