Skip to content

Commit 7a78029

Browse files
authored
Update main.yml (#202)
1 parent fec75f4 commit 7a78029

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)