There was an error while loading. Please reload this page.
1 parent 915d0da commit 09d7084Copy full SHA for 09d7084
1 file changed
.github/workflows/ci.yml
@@ -255,11 +255,11 @@ jobs:
255
GH_TOKEN: ${{ github.token }}
256
run: |
257
# --paginate fetches all pages; jq outputs one name per line per page;
258
- # head -1 takes the first (newest) match since GitHub returns tags
259
- # newest-first. Fails hard if no cuda-core-v* tag is found.
+ # sed prints the first (newest) match while consuming all pages, so
+ # gh can complete without SIGPIPE. Fails if no cuda-core-v* tag is found.
260
tag="$(gh api "repos/$GITHUB_REPOSITORY/tags" --paginate \
261
--jq '.[] | select(.name | startswith("cuda-core-v")) | .name' \
262
- | head -1)"
+ | sed -n '1p')"
263
if [[ -z "${tag}" ]]; then
264
echo "::error::No cuda-core-v* tag found in the repository." >&2
265
exit 1
0 commit comments