Skip to content

Commit f0f3959

Browse files
authored
Merge pull request #325 from github-community-projects/fix-duplicate-pr-actions-jobs
fix(ci): only run actions jobs on push to main
2 parents 0256691 + 4e644b8 commit f0f3959

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

.github/workflows/build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Run Build
22

33
on:
4-
- push
5-
- workflow_dispatch
6-
- pull_request
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
79

810
jobs:
911
build:

.github/workflows/docker-build.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Build Docker Image
22

33
on:
4-
- push
5-
- workflow_dispatch
6-
- pull_request
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
79

810
jobs:
911
docker-build:

.github/workflows/lint.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Run Lint
22

33
on:
4-
- push
5-
- workflow_dispatch
6-
- pull_request
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
79

810
jobs:
911
lint:

.github/workflows/tests.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
name: Run Jest Tests
22

33
on:
4-
- push
5-
- workflow_dispatch
6-
- pull_request
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
pull_request:
79

810
jobs:
911
test:

0 commit comments

Comments
 (0)