Skip to content

Commit 68e2f9b

Browse files
authored
Update docs-quality.yml
1 parent 0337431 commit 68e2f9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/docs-quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
if json_out="$(harper-cli lint $ONLY_ARG --format json "$file" 2>/dev/null)"; then
9797
:
9898
else
99-
printf '%s' "$json_out" | python3 -c "import json,sys;d=json.load(sys.stdin);esc=lambda s: s.replace('%','%25').replace('\r','%0D').replace('\n','%0A');[print('::warning file='+esc(f.get('file',''))+',line='+str(l.get('line',1))+',col='+str(l.get('column',1))+',title='+esc(l.get('rule','?'))+'::'+esc(l.get('message',''))) for f in d for l in f.get('lints',[])]" || true
99+
printf '%s' "$json_out" | FILE="$file" python3 -c "import json,sys,os;d=json.load(sys.stdin);fp=os.environ['FILE'];esc=lambda s: s.replace('%','%25').replace('\r','%0D').replace('\n','%0A');[print('::warning file='+esc(fp)+',line='+str(l.get('line',1))+',col='+str(l.get('column',1))+',title='+esc(l.get('rule','?'))+'::'+esc(l.get('message',''))) for f in d for l in f.get('lints',[])]" || true
100100
fi
101101
done < <(
102102
find docs/hpc/harpertestfile.md -type f -print0 2>/dev/null

0 commit comments

Comments
 (0)