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:
34
34
id : set-matrix
35
35
run : |
36
36
# Group the output by platform.
37
- set -x
38
37
CHECK_RUNS=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate)
39
-
38
+ echo "checks..."
40
39
FILTERED=$(echo "$CHECK_RUNS" | jq -r '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }')
41
-
40
+ echo "filtered..."
42
41
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..."
44
43
if jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
45
44
echo "Valid JSON"
46
45
else
47
46
echo "Invalid JSON: $GROUPS"
48
47
exit 1 # or handle the error appropriately
49
- fi
48
+ fi
49
+ echo "creating result matrix."
50
50
echo "matrix=$GROUPS" >> $GITHUB_OUTPUT
51
51
52
52
# 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