Skip to content

Commit 62afe78

Browse files
committed
ltex workflow
1 parent 17a7133 commit 62afe78

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/ltex.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 ltex-ls
18+
# - name: Setup tmate session
19+
# uses: mxschmitt/action-tmate@v3
20+
- name: Run ltex-ls
21+
id: run-ltex-ls
22+
run: |
23+
unset JAVA_HOME
24+
ltex-cli --client-configuration=paper/ltex.json paper | tee ltex-cli.log
25+
- name: Build comment
26+
id: build-comment
27+
uses: actions/github-script@v6
28+
with:
29+
github-token: ${{ github.token }}
30+
result-encoding: string
31+
script: |
32+
const fs = require('fs');
33+
return "<details>\n<summary>ltex output</summary>\n\n```\n" + fs.readFileSync("${{ github.workspace }}/ltex-cli.log", "utf8").toString() + "\n```\n</details>";
34+
- name: Comment in PR
35+
uses: thollander/actions-comment-pull-request@v2
36+
with:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
message: ${{ steps.build-comment.outputs.result }}

paper/report.tex

Lines changed: 2 additions & 2 deletions
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)