Skip to content
Merged
Changes from all commits
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
6 changes: 5 additions & 1 deletion releasey/libs/_github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ function check_github_checks_passed() {
local repo_info="$GITHUB_REPOSITORY"

local num_invalid_checks
local num_invalid_checks_retrieval_command="gh api repos/${repo_info}/commits/${commit_sha}/check-runs --jq '[.check_runs[] | select(.conclusion != \"success\" and .conclusion != \"skipped\" and (.name | startswith(\"Release - \") | not) and (.name != \"markdown-link-check\"))] | length'"
# Look for checks with names ending with ` / Required Checks`.
# The full names follow the pattern `CI/<branch-name> / Required Checks`, for example
# `CI/main / Required Checks` or `CI/release/abc / Required Checks`.
# Refer to the `ci-main` job name attribute in yi-main.yml.
local num_invalid_checks_retrieval_command="gh api repos/${repo_info}/commits/${commit_sha}/check-runs --jq '[.check_runs[] | select(.conclusion != \"success\" and .conclusion != \"skipped\" and (.name | endswith(\" / Required Checks\")))] | length'"
if [ ${DRY_RUN} -eq 1 ]; then
print_info "DRY_RUN is enabled, skipping GitHub check verification"
print_command "${num_invalid_checks_retrieval_command}"
Expand Down