Skip to content

Commit

Permalink
BC-5468 corrected jq command for storing data
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Nov 14, 2023
1 parent 416aadd commit 206f617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ jobs:
done < <(jq -r 'to_entries | .[] | "\(.key)=\(.value)"' "$file_path")
done
json_output=$(jq -s --compact-output 'to_entries | .[] | flatten | "\(.key)=\(.value)"' "${file_paths[@]}")
json_output=$(jq -s 'reduce .[] as $item ({}; . + ($item | with_entries(.value |= tostring)))' "${file_paths[@]}")
# json_output="{"
# for key in "${!key_value_pairs[@]}"; do
Expand Down

0 comments on commit 206f617

Please sign in to comment.