Skip to content

Commit 0bb8738

Browse files
committed
set push event to main branch only, to avoid duplicate workflow runs
1 parent 98f6aa3 commit 0bb8738

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/build-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Build
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
types: [opened, reopened, synchronize]
79

.github/workflows/check-formatting.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Check Python code formatting
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
types: [opened, reopened, synchronize]
79

.github/workflows/run-percy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Run Percy
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
types: [opened, reopened, synchronize]
79
workflow_dispatch:

.github/workflows/run-pytest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Test
22

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68
types: [opened, reopened, synchronize]
79

0 commit comments

Comments
 (0)