File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4343 FILTERED=$(./jq --slurp -c -r . <<< "$FILTERED")
4444 ./jq -e . <<< "$FILTERED"
4545 echo "computing groups"
46- ./jq -c -r '. as $jobs | map(.config | split(".") | first) | unique' <<< "$FILTERED"
47- GROUPS=$(./jq -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED")
46+ ./jq -c -r '. as $jobs | map(.config | split(".") | first) | unique' <<< "$FILTERED"
47+ ./jq '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED"
48+ GROUPS=$(./jq '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED")
4849 echo "groups..."
4950 if ./jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
5051 echo "Valid JSON"
You can’t perform that action at this time.
0 commit comments