File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,16 +47,16 @@ jobs:
47
47
echo $?
48
48
set -x
49
49
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")
51
51
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
53
53
echo "Valid JSON"
54
54
else
55
- echo "Invalid JSON: $GROUPS "
55
+ echo "Invalid JSON: $MY_M "
56
56
exit 1 # or handle the error appropriately
57
57
fi
58
58
echo "creating result matrix."
59
- echo "matrix=$GROUPS " >> $GITHUB_OUTPUT
59
+ echo "matrix=$MY_M " >> $GITHUB_OUTPUT
60
60
61
61
# We need this process step in here, because we have in excess of 256 jobs.
62
62
process :
You can’t perform that action at this time.
0 commit comments