Skip to content

Commit f4b1c34

Browse files
authored
Update main.yml
1 parent f5d8070 commit f4b1c34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ jobs:
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"

0 commit comments

Comments
 (0)