Skip to content

Commit 040d8de

Browse files
committed
fix(ci): Generate JSON on a single line
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 <[email protected]>
1 parent 5ceee25 commit 040d8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/lava-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
# json with list of relative filenames to LAVA templates
3939
J=$(find "${LAVA_CI}" -name '*.yaml' -print0 |
40-
jq -Rs '
40+
jq --compact-output --raw-input --slurp '
4141
# split null-delimited list and remove last empty item
4242
split("\u0000")[:-1]
4343
# remove leading "ci/lava/"

0 commit comments

Comments
 (0)