File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,17 @@ jobs:
3232 id : set-matrix
3333 run : |
3434 # Group the output by platform.
35- jq --version
35+ curl -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux64 -o jq
36+ chmod +x jq
37+ ./jq --version
3638 CHECK_RUNS=$(gh api "repos/$GITHUB_REPOSITORY/commits/main/check-runs" --paginate)
3739 echo "checks..."
38- FILTERED=$(jq -c -r '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }' <<< "$CHECK_RUNS")
40+ FILTERED=$(./ jq -c -r '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }' <<< "$CHECK_RUNS")
3941 echo "filtered..."
40- jq -e . <<< "$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")
42+ ./ jq -e . <<< "$FILTERED"
43+ 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")
4244 echo "groups..."
43- if jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
45+ if ./ jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
4446 echo "Valid JSON"
4547 else
4648 echo "Invalid JSON: $GROUPS"
You can’t perform that action at this time.
0 commit comments