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")