From 040d8de89676c6ca9dbca4bd3d79e09227436f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Wed, 15 Oct 2025 13:01:37 +0200 Subject: [PATCH] fix(ci): Generate JSON on a single line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit jq defaults to pretty-printing on multiple lines, request compact output to have the JSON on a single line, suitable for a GITHUB_OUTPUT variable definition. Use this opportunity to use more human readable, longer form flags. Signed-off-by: Loïc Minier --- .github/workflows/lava-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lava-test.yml b/.github/workflows/lava-test.yml index 89bc4e6..3774376 100644 --- a/.github/workflows/lava-test.yml +++ b/.github/workflows/lava-test.yml @@ -37,7 +37,7 @@ jobs: run: | # json with list of relative filenames to LAVA templates J=$(find "${LAVA_CI}" -name '*.yaml' -print0 | - jq -Rs ' + jq --compact-output --raw-input --slurp ' # split null-delimited list and remove last empty item split("\u0000")[:-1] # remove leading "ci/lava/"