Skip to content

Commit

Permalink
recursively unstrigify object and array JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Jul 11, 2024
1 parent 85b9a0d commit 8766377
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/registry-updates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8766377

Please sign in to comment.