File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 with :
2929 node-version : 18
3030
31- - name : Install MDX cleaner dependencies
31+ - name : Install dependencies for MDX and parser
3232 if : steps.changed.outputs.any_changed == 'true'
33- run : npm install remark remark-mdx strip-markdown
33+ run : |
34+ npm install remark remark-mdx strip-markdown
3435
3536 - name : Extract prose from changed docs
3637 if : steps.changed.outputs.any_changed == 'true'
@@ -51,15 +52,17 @@ jobs:
5152
5253 - name : Install reviewdog
5354 if : steps.changed.outputs.any_changed == 'true'
54- uses : reviewdog/action-setup@v1
55-
56- - name : Run LanguageTool with reviewdog
55+ uses : reviewdog/action-setup@v1
56+
57+ - name : Run LanguageTool and parse to reviewdog format
5758 if : steps.changed.outputs.any_changed == 'true'
5859 env :
5960 REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6061 run : |
6162 for f in dist/*.txt; do
62- java -jar $LT_PATH -l en-US "$f" |
63+ OUT="dist/$(basename "$f").json"
64+ java -jar $LT_PATH -l en-US --json "$f" > "$OUT"
65+ node .github/scripts/languagetool-json-to-reviewdog.js "$OUT" "$f" |
6366 reviewdog -efm="%f: Line %l: %m" \
6467 -name="LanguageTool" \
6568 -reporter=github-pr-review \
You can’t perform that action at this time.
0 commit comments