Skip to content
Open
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: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading