Skip to content

Commit 4d172fc

Browse files
authored
Run molecule only when required (#441)
1 parent a5a804e commit 4d172fc

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

.github/workflows/alloy-molecule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'roles/alloy/**'
810
pull_request:
911
branches:
1012
- main
13+
paths:
14+
- 'roles/alloy/**'
1115

1216
defaults:
1317
run:

.github/workflows/loki-molecule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'roles/loki/**'
810
pull_request:
911
branches:
1012
- main
13+
paths:
14+
- 'roles/loki/**'
1115

1216
defaults:
1317
run:

.github/workflows/mimir-molecule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'roles/mimir/**'
810
pull_request:
911
branches:
1012
- main
13+
paths:
14+
- 'roles/mimir/**'
1115

1216
defaults:
1317
run:

.github/workflows/opentelemetry-collector-molecule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'roles/opentelemetry_collector/**'
810
pull_request:
911
branches:
1012
- main
13+
paths:
14+
- 'roles/opentelemetry_collector/**'
1115

1216
defaults:
1317
run:

.github/workflows/promtail-molecule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'roles/promtail/**'
810
pull_request:
911
branches:
1012
- main
13+
paths:
14+
- 'roles/promtail/**'
1115

1216
defaults:
1317
run:

0 commit comments

Comments
 (0)