We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93a7532 commit fec75f4Copy full SHA for fec75f4
.github/workflows/main.yml
@@ -36,12 +36,11 @@ jobs:
36
# Group the output by platform.
37
set -x
38
CHECK_RUNS=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/check-runs" --paginate)
39
- echo "Check Runs: $CHECK_RUNS"
40
41
FILTERED=$(echo "$CHECK_RUNS" | jq -r '.check_runs[] | select(.name | endswith("-env")) | { "config": .name, "build_path": .output.text }')
42
- echo "Filtered: $FILTERED"
43
44
GROUPS=$(echo "$FILTERED" | jq --slurp -c -r '. as $jobs | map(.config | split(".") | first) | unique | map(. as $group | {"platform": $group, "jobs": $jobs | map(select(.config |startswith($group)))})')
+
45
if jq -e . <<< "$GROUPS" > /dev/null 2>&1; then # JSON validation
46
echo "Valid JSON"
47
else
0 commit comments