Skip to content

Commit 6a6525e

Browse files
committed
chore(ci): rework when we run our workflows
Run workflows for pull requests and for pushes to main. We previously only ran it for pushes, which works fine for contributors who have direct repository access, but not when you contribute from a fork. As a side effect we no longer run CI for non-main branches in the repository. Signed-off-by: Christoph Steiger <christoph.steiger@siemens.com>
1 parent 47b3f53 commit 6a6525e

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/containers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: Containers
55

66
on:
77
push:
8+
branches:
9+
- main
10+
pull_request:
811

912
jobs:
1013
build_containers:

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Docs
66

77
on:
88
push:
9+
branches:
10+
- main
11+
pull_request:
912

1013
jobs:
1114
docs:

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Lint Python Code
66

77
on:
88
push:
9+
branches:
10+
- main
11+
pull_request:
912

1013
jobs:
1114
format:

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Tests
66

77
on:
88
push:
9+
branches:
10+
- main
11+
pull_request:
912

1013
jobs:
1114
test:

0 commit comments

Comments
 (0)