Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update required checks: Fail if no check runs found
  • Loading branch information
henrymercer committed Sep 22, 2025
commit 8a9ef89a8a4f81be00be2e2386f3a5145ee68394
6 changes: 6 additions & 0 deletions .github/workflows/script/update-required-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs -

echo "$CHECKS" | jq

# Fail if there are no checks
if [ -z "$CHECKS" ] || [ "$CHECKS" == "[]" ]; then
Comment thread
henrymercer marked this conversation as resolved.
Outdated
echo "No checks found for $GITHUB_SHA"
exit 1
fi

echo "{\"contexts\": ${CHECKS}}" > checks.json

echo "Updating main"
Expand Down
Loading