Skip to content

Commit 899eed1

Browse files
committed
Refactor metrics generation step
1 parent 2828650 commit 899eed1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,17 @@ jobs:
241241
- name: postprocess metrics into the summary
242242
run: |
243243
if [ -f build/metrics.json ]; then
244-
./build/citool/debug/citool postprocess-metrics build/metrics.json ${GITHUB_STEP_SUMMARY}
244+
METRICS=build/metrics.json
245245
elif [ -f obj/build/metrics.json ]; then
246-
./build/citool/debug/citool postprocess-metrics obj/build/metrics.json ${GITHUB_STEP_SUMMARY}
246+
METRICS=obj/build/metrics.json
247247
else
248248
echo "No metrics.json found"
249+
exit 0
249250
fi
250251
252+
./build/citool/debug/citool postprocess-metrics \
253+
${METRICS} ${GITHUB_STEP_SUMMARY}
254+
251255
- name: upload job metrics to DataDog
252256
if: needs.calculate_matrix.outputs.run_type != 'pr'
253257
env:

0 commit comments

Comments
 (0)