File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,11 @@ jobs:
33
33
- name : fetch all ci/hydra-build jobs
34
34
id : set-matrix
35
35
run : |
36
- BUILDS=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate \
37
- --jq '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }' | \
38
- jq --slurp -c -r)
39
36
# Group the output by platform.
40
- GROUPS=$("$BUILDS" | jq -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})')
41
- echo "${GROUPS}" | jq .
37
+ GROUPS=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate \
38
+ --jq '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }' | \
39
+ jq --slurp -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})')
40
+ jq . <<< ${GROUPS}
42
41
echo "matrix=${GROUPS}" >> $GITHUB_OUTPUT
43
42
44
43
# 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