fix(gh): Don't report bad annotations for binary files

Fixes #504
This commit is contained in:
Ed Page 2022-06-22 11:29:25 -05:00
parent 05ad2bde04
commit 87effb2664

View file

@ -48,6 +48,7 @@ fi
log "$ ${COMMAND}"
${COMMAND} --format json |
grep '"type":"typo"' |
jq --sort-keys --raw-output '"::warning file=\(.path),line=\(.line_num),col=\(.byte_offset)::\"\(.typo)\" should be \"" + (.corrections // [] | join("\" or \"") + "\".")' |
while IFS= read -r line; do
echo "$line"