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.
pull/3910/head
Timothy Messier 3 years ago committed by GitHub
parent c89777de41
commit d865ff16a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.

Loading…
Cancel
Save