Skip to content

Commit ecf4658

Browse files
committed
Required checks script: Ignore skipped jobs
1 parent c24926b commit ecf4658

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/script/update-required-checks.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ fi
2828
echo "Getting checks for $GITHUB_SHA"
2929

3030
# Ignore any checks with "https://", CodeQL, LGTM, and Update checks.
31-
# Also ignore the non-matrixed "Unit Tests" job that only runs on pushes to protected branches.
32-
CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs | .[].name | select(contains("https://") or . == "CodeQL" or . == "Dependabot" or . == "check-expected-release-files" or . == "Unit Tests" or contains("Update") or contains("update") or contains("test-setup-python-scripts") | not)] | unique | sort')"
31+
CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs.[] | select(.conclusion != "skipped") | .name | select(contains("https://") or . == "CodeQL" or . == "Dependabot" or . == "check-expected-release-files" or contains("Update") or contains("update") or contains("test-setup-python-scripts") | not)] | unique | sort')"
3332

3433
echo "$CHECKS" | jq
3534

0 commit comments

Comments
 (0)