From bc539e0df17c523a57118d637865061bbf961e60 Mon Sep 17 00:00:00 2001 From: Ralf Juengling Date: Thu, 30 Jul 2026 15:51:55 -0700 Subject: [PATCH] fix(ci): avoid pipefail in ci.yaml shell code --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 442476ba05e..208d6fa760e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -257,9 +257,9 @@ jobs: # --paginate fetches all pages; jq outputs one name per line per page; # head -1 takes the first (newest) match since GitHub returns tags # newest-first. Fails hard if no cuda-core-v* tag is found. - tag="$(gh api "repos/$GITHUB_REPOSITORY/tags" --paginate \ - --jq '.[] | select(.name | startswith("cuda-core-v")) | .name' \ - | head -1)" + mapfile -t _tags < <(gh api "repos/$GITHUB_REPOSITORY/tags" --paginate \ + --jq '.[] | select(.name | startswith("cuda-core-v")) | .name' || true) + tag="${_tags[0]:-}" if [[ -z "${tag}" ]]; then echo "::error::No cuda-core-v* tag found in the repository." >&2 exit 1