From 87663776bc631d90c024989469f2d71610ba075b Mon Sep 17 00:00:00 2001 From: Karthikeyan C Date: Thu, 11 Jul 2024 16:30:53 +0530 Subject: [PATCH] recursively unstrigify object and array JSON --- .github/workflows/registry-updates.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/registry-updates.yaml b/.github/workflows/registry-updates.yaml index c32f7079..dbf180e7 100644 --- a/.github/workflows/registry-updates.yaml +++ b/.github/workflows/registry-updates.yaml @@ -40,7 +40,18 @@ jobs: OUTPUT: ${{ toJson(steps.changed-files.outputs) }} run: | echo "**************" - echo "$OUTPUT" | jq . + echo "$OUTPUT" | jq -R ' + def recurse_fromjson: + fromjson? // . | + if type == "object" then + map_values(recurse_fromjson) + elif type == "array" then + map(recurse_fromjson) + else + . + end; + recurse_fromjson + ' # - name: List changed files