From d865ff16a4349a3cd332b5831e78aad3d4d7bfd3 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Tue, 24 Oct 2023 14:00:29 -0400 Subject: [PATCH] ci(schema-diff): Fix error with large diffs (#3909) When generating the JSON for submitting the github comment, if the message was too large, the workflow would fail with the following error: /usr/bin/jq: Argument list too long This fix switches to using the `--rawfile`, which allows jq to process the large comment. --- .github/workflows/schema-diff.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schema-diff.yml b/.github/workflows/schema-diff.yml index 1fef5a2183..977193e854 100644 --- a/.github/workflows/schema-diff.yml +++ b/.github/workflows/schema-diff.yml @@ -86,7 +86,7 @@ jobs: # Parse it through jq to build a valid json object. jq --null-input \ - --arg comment "$(cat github-comment.txt)" \ + --rawfile comment github-comment.txt \ '{"body": $comment}' > body.json # Post comment on PR.