diff --git a/.github/workflows/ltex.yml b/.github/workflows/ltex.yml new file mode 100644 index 0000000..f1fcc3e --- /dev/null +++ b/.github/workflows/ltex.yml @@ -0,0 +1,34 @@ +name: ltex + +on: + pull_request: + branches: + - master + - main + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checking out repository + uses: actions/checkout@v4 + - name: Install ltex-ls + run: brew install openjdk ltex-ls + - name: Run ltex-ls + id: run-ltex-ls + run: | + ltex-cli --client-configuration=paper/ltex.json paper | tee ltex-cli.log + - name: Build comment + id: build-comment + uses: actions/github-script@v6 + with: + github-token: ${{ github.token }} + result-encoding: string + script: | + const fs = require('fs'); + return "
\nltex output\n\n```\n" + fs.readFileSync("${{ github.workspace }}/ltex-cli.log", "utf8").toString() + "\n```\n
"; + - name: Comment in PR + uses: thollander/actions-comment-pull-request@v2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + message: ${{ steps.build-comment.outputs.result }} diff --git a/paper/report.tex b/paper/report.tex index 7e0fcae..5f6f875 100644 --- a/paper/report.tex +++ b/paper/report.tex @@ -22,11 +22,11 @@ \title{\papertitle} \author{% Author One\footnote{% - GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montr\'eal. E-mail: \href{mailto:geoffroy.leconte@polymtl.ca}{geoffroy.leconte@polymtl.ca}. + GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal. E-mail: \href{mailto:geoffroy.leconte@polymtl.ca}{geoffroy.leconte@polymtl.ca}. } \and Dominique Orban\footnote{% - GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montr\'eal. E-mail: \href{mailto:dominique.orban@gerad.ca}{dominique.orban@gerad.ca}. + GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal. E-mail: \href{mailto:dominique.orban@gerad.ca}{dominique.orban@gerad.ca}. } \thanks{Research supported by an NSERC Discovery grant.} }