Skip to content

Commit 850cbb8

Browse files
authored
Update main.yml
1 parent e3f4586 commit 850cbb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ jobs:
4747
echo $?
4848
set -x
4949
echo "Lets build groups..."
50-
GROUPS=$(./jq '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED")
50+
MY_M=$(./jq -c '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})' <<< "$FILTERED")
5151
echo "groups..."
52-
if ./jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
52+
if ./jq -e . <<< "$MY_M" > /dev/null 2>&1; then # JSON validation
5353
echo "Valid JSON"
5454
else
55-
echo "Invalid JSON: $GROUPS"
55+
echo "Invalid JSON: $MY_M"
5656
exit 1 # or handle the error appropriately
5757
fi
5858
echo "creating result matrix."
59-
echo "matrix=$GROUPS" >> $GITHUB_OUTPUT
59+
echo "matrix=$MY_M" >> $GITHUB_OUTPUT
6060
6161
# We need this process step in here, because we have in excess of 256 jobs.
6262
process:

0 commit comments

Comments
 (0)