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:
32
32
id : set-matrix
33
33
run : |
34
34
# 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
36
38
CHECK_RUNS=$(gh api "repos/$GITHUB_REPOSITORY/commits/main/check-runs" --paginate)
37
39
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")
39
41
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")
42
44
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
44
46
echo "Valid JSON"
45
47
else
46
48
echo "Invalid JSON: $GROUPS"
You can’t perform that action at this time.
0 commit comments