Skip to content

Commit eb93152

Browse files
authored
Only run workflows when pushing to main (#515)
This stops the workflows from running twice on each ETOS-generated pull request
1 parent d841315 commit eb93152

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/lint.yml

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

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68

79
jobs:

.github/workflows/test-e2e.yml

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

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68

79
jobs:

.github/workflows/test.yml

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

33
on:
44
push:
5+
branches:
6+
- main
57
pull_request:
68

79
jobs:

0 commit comments

Comments
 (0)