Skip to content

Commit e21ae40

Browse files
authored
Update main.yml (#198)
1 parent f95b56d commit e21ae40

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)