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 8a9ef89 commit 33da5f0Copy full SHA for 33da5f0
.github/workflows/script/update-required-checks.sh
@@ -34,7 +34,7 @@ CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs -
34
echo "$CHECKS" | jq
35
36
# Fail if there are no checks
37
-if [ -z "$CHECKS" ] || [ "$CHECKS" == "[]" ]; then
+if [ -z "$CHECKS" ] || [ "$(echo "$CHECKS" | jq '. | length')" -eq 0 ]; then
38
echo "No checks found for $GITHUB_SHA"
39
exit 1
40
fi
0 commit comments