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