fix(ci): use relaxed naming for ignored checks (#9666)

These jobs have the `ci / ` prefix when run on main, but no prefix when
run on PRs. To fix the ignored checks, we need to use `contains`.
This commit is contained in:
Jamil
2025-06-24 18:56:34 -07:00
committed by GitHub
parent 75740e4377
commit 2b154d88bf

View File

@@ -121,7 +121,7 @@ jobs:
set -e
while true; do
jobs_json=$(gh run view ${{ github.run_id }} --json jobs --jq '.jobs | map(select(.name != "ci / required-check" and .name != "ci / upload-bencher"))')
jobs_json=$(gh run view ${{ github.run_id }} --json jobs --jq '.jobs | map(select((.name | contains("required-check") | not) and (.name | contains("upload-bencher") | not)))')
total_jobs=$(echo "$jobs_json" | jq 'length')
failed_jobs=$(echo "$jobs_json" | jq -r '[.[] | select(.conclusion == "failure")] | length')