Skip to content

Commit 0160b5b

Browse files
committed
ltex workflow
1 parent 17a7133 commit 0160b5b

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/ltex.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: ltex
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
steps:
13+
- name: Checking out repository
14+
uses: actions/checkout@v4
15+
- name: Install ltex-ls
16+
run: |
17+
brew install openjdk@17 ltex-ls
18+
- name: Run ltex-ls
19+
id: run-ltex-ls
20+
run: |
21+
ltex-cli --client-configuration=paper/ltex.json paper | tee ltex-cli.log
22+
- name: Build comment
23+
id: build-comment
24+
uses: actions/github-script@v6
25+
with:
26+
github-token: ${{ github.token }}
27+
result-encoding: string
28+
script: |
29+
const fs = require('fs');
30+
return "<details>\n<summary>ltex output</summary>\n\n```\n" + fs.readFileSync("${{ github.workspace }}/ltex-cli.log", "utf8").toString() + "\n```\n</details>";
31+
- name: Comment in PR
32+
uses: thollander/actions-comment-pull-request@v2
33+
with:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
message: ${{ steps.build-comment.outputs.result }}

paper/report.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
\title{\papertitle}
2323
\author{%
2424
Author One\footnote{%
25-
GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montr\'eal. E-mail: \href{mailto:geoffroy.leconte@polymtl.ca}{geoffroy.leconte@polymtl.ca}.
25+
GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal. E-mail: \href{mailto:geoffroy.leconte@polymtl.ca}{geoffroy.leconte@polymtl.ca}.
2626
}
2727
\and
2828
Dominique Orban\footnote{%
29-
GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montr\'eal. E-mail: \href{mailto:dominique.orban@gerad.ca}{dominique.orban@gerad.ca}.
29+
GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal. E-mail: \href{mailto:dominique.orban@gerad.ca}{dominique.orban@gerad.ca}.
3030
}
3131
\thanks{Research supported by an NSERC Discovery grant.}
3232
}

0 commit comments

Comments
 (0)