From 11aa316e95a6afe124f2592f45a3cfc9116c29a0 Mon Sep 17 00:00:00 2001 From: Michal Czyz Date: Mon, 11 Mar 2024 12:19:34 +0100 Subject: [PATCH] Replace cat with jq for compact json Signed-off-by: Michal Czyz --- .github/workflows/xls-modules.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/xls-modules.yml b/.github/workflows/xls-modules.yml index 2f641a2f30..f83347c0f2 100644 --- a/.github/workflows/xls-modules.yml +++ b/.github/workflows/xls-modules.yml @@ -54,7 +54,8 @@ jobs: - name: Read json file id: read-json run: | - echo "json_config=$(cat .github/workflows/xls-modules.json)" | tee -a "$GITHUB_ENV" + sudo apt install jq + echo "json_config=$(jq -c . .github/workflows/xls-modules.json)" | tee -a "$GITHUB_ENV" implement: needs: config-matrix