From e0fc8362b85f020204e8be903abd649778ecedaa Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Thu, 8 Oct 2026 00:32:11 -0400 Subject: [PATCH] Fix PR build report lookup (#420) Use standalone jq to filter paginated PR comments --- .github/workflows/pr-release-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-release-publish.yml b/.github/workflows/pr-release-publish.yml index ffe2e2c1d..6c5070b27 100644 --- a/.github/workflows/pr-release-publish.yml +++ b/.github/workflows/pr-release-publish.yml @@ -312,8 +312,8 @@ jobs: $NEXT EOF ) - comment=$(gh api "repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/comments" --paginate --slurp \ - --jq "[.[][] | select(.user.login == \"github-actions[bot]\") | select(.body | startswith(\"$mark\"))] | first // {}") + comment=$(gh api "repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/comments" --paginate --slurp | \ + jq "[.[][] | select(.user.login == \"github-actions[bot]\") | select(.body | startswith(\"$mark\"))] | first // {}") id=$(jq -r '.id // empty' <<<"$comment") if [ -n "$id" ]; then state=$(jq -r '.body | split("\n")[] | select(startswith(""))' <<<"$comment")