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 6b6d1dd commit 8a9ef89Copy full SHA for 8a9ef89
.github/workflows/script/update-required-checks.sh
@@ -33,6 +33,12 @@ CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs -
33
34
echo "$CHECKS" | jq
35
36
+# Fail if there are no checks
37
+if [ -z "$CHECKS" ] || [ "$CHECKS" == "[]" ]; then
38
+ echo "No checks found for $GITHUB_SHA"
39
+ exit 1
40
+fi
41
+
42
echo "{\"contexts\": ${CHECKS}}" > checks.json
43
44
echo "Updating main"
0 commit comments