From 52c42ef629b835fdfb9ca0f38f0209e8cf677581 Mon Sep 17 00:00:00 2001 From: "(Eliseo) Nathaniel Ruiz Nowell" Date: Thu, 10 Dec 2020 21:29:36 +0000 Subject: [PATCH] Make jq command to collect benchmarks more readable Co-authored-by: Aaron Abbott --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95fa780b4a7..6d679a6f837 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -64,7 +64,10 @@ jobs: - name: Find and merge benchmarks # TODO: Add at least one benchmark to every package type to remove this if: matrix.package == 'core' - run: jq -s '.[0].benchmarks = ([.[].benchmarks] | add) | if .[0].benchmarks == null then null else .[0] end' opentelemetry-*/tests/*${{ matrix.package }}*.json > output.json + run: >- + jq -s '.[0].benchmarks = ([.[].benchmarks] | add) + | if .[0].benchmarks == null then null else .[0] end' + opentelemetry-*/tests/*${{ matrix.package }}*.json > output.json - name: Report on benchmark results # TODO: Add at least one benchmark to every package type to remove this if: matrix.package == 'core'