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 43
43
FILTERED=$(./jq --slurp -c -r . <<< "$FILTERED")
44
44
./jq -e . <<< "$FILTERED"
45
45
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")
48
49
echo "groups..."
49
50
if ./jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
50
51
echo "Valid JSON"
You can’t perform that action at this time.
0 commit comments