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:
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 :
You can’t perform that action at this time.
0 commit comments