@@ -69,21 +69,21 @@ jobs:
69
69
run : ./scripts/build.sh -r
70
70
- name : Start prometheus
71
71
# Only run for the original repo; a forked repo won't have access to the monitoring credentials
72
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
72
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
73
73
shell : bash
74
74
run : bash -x ./scripts/run_prometheus.sh
75
75
env :
76
76
PROMETHEUS_ID : ${{ secrets.PROMETHEUS_ID }}
77
77
PROMETHEUS_PASSWORD : ${{ secrets.PROMETHEUS_PASSWORD }}
78
78
- name : Start promtail
79
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
79
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
80
80
shell : bash
81
81
run : bash -x ./scripts/run_promtail.sh
82
82
env :
83
83
LOKI_ID : ${{ secrets.LOKI_ID }}
84
84
LOKI_PASSWORD : ${{ secrets.LOKI_PASSWORD }}
85
85
- name : Notify of metrics availability
86
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
86
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
87
87
shell : bash
88
88
run : .github/workflows/notify-metrics-availability.sh
89
89
env :
@@ -123,21 +123,21 @@ jobs:
123
123
run : ./scripts/build.sh -r
124
124
- name : Start prometheus
125
125
# Only run for the original repo; a forked repo won't have access to the monitoring credentials
126
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
126
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
127
127
shell : bash
128
128
run : bash -x ./scripts/run_prometheus.sh
129
129
env :
130
130
PROMETHEUS_ID : ${{ secrets.PROMETHEUS_ID }}
131
131
PROMETHEUS_PASSWORD : ${{ secrets.PROMETHEUS_PASSWORD }}
132
132
- name : Start promtail
133
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
133
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
134
134
shell : bash
135
135
run : bash -x ./scripts/run_promtail.sh
136
136
env :
137
137
LOKI_ID : ${{ secrets.LOKI_ID }}
138
138
LOKI_PASSWORD : ${{ secrets.LOKI_PASSWORD }}
139
139
- name : Notify of metrics availability
140
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
140
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
141
141
shell : bash
142
142
run : .github/workflows/notify-metrics-availability.sh
143
143
env :
@@ -176,21 +176,21 @@ jobs:
176
176
run : ./scripts/build.sh
177
177
- name : Start prometheus
178
178
# Only run for the original repo; a forked repo won't have access to the monitoring credentials
179
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
179
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
180
180
shell : bash
181
181
run : bash -x ./scripts/run_prometheus.sh
182
182
env :
183
183
PROMETHEUS_ID : ${{ secrets.PROMETHEUS_ID }}
184
184
PROMETHEUS_PASSWORD : ${{ secrets.PROMETHEUS_PASSWORD }}
185
185
- name : Start promtail
186
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
186
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
187
187
shell : bash
188
188
run : bash -x ./scripts/run_promtail.sh
189
189
env :
190
190
LOKI_ID : ${{ secrets.LOKI_ID }}
191
191
LOKI_PASSWORD : ${{ secrets.LOKI_PASSWORD }}
192
192
- name : Notify of metrics availability
193
- if : (github.event.pull_request.head.repo.full_name == github.repository ) || (github.event.repository.fork == false )
193
+ if : (github.event_name != 'pull_request' ) || (github.event.pull_request.head.repo.full_name == github.repository )
194
194
shell : bash
195
195
run : .github/workflows/notify-metrics-availability.sh
196
196
env :
0 commit comments