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:
3333 - name : fetch all ci/hydra-build jobs
3434 id : set-matrix
3535 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)
3936 # 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}
4241 echo "matrix=${GROUPS}" >> $GITHUB_OUTPUT
4342
4443 # 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