File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,19 @@ jobs:
3434 id : set-matrix
3535 run : |
3636 # Group the output by platform.
37- set -x
3837 CHECK_RUNS=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate)
39-
38+ echo "checks..."
4039 FILTERED=$(echo "$CHECK_RUNS" | jq -r '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }')
41-
40+ echo "filtered..."
4241 GROUPS=$(echo "$FILTERED" | jq --slurp -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})')
43-
42+ echo "groups..."
4443 if jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
4544 echo "Valid JSON"
4645 else
4746 echo "Invalid JSON: $GROUPS"
4847 exit 1 # or handle the error appropriately
49- fi
48+ fi
49+ echo "creating result matrix."
5050 echo "matrix=$GROUPS" >> $GITHUB_OUTPUT
5151
5252 # We need this process step in here, because we have in excess of 256 jobs.
You can’t perform that action at this time.
0 commit comments