Fundamental domain for lens spaces. #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LaTeX figures | |
on: [push] | |
jobs: | |
build_latex: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Compile TeX files | |
uses: xu-cheng/latex-action@v3 | |
with: | |
root_file: | | |
E1/E1.tex | |
E2/E2.tex | |
E3/E3.tex | |
E4/E4.tex | |
E5/E5.tex | |
E6/E6.tex | |
E7/E7.tex | |
E8/E8.tex | |
E9/E9.tex | |
E10/E10.tex | |
E11/E11.tex | |
E12/E12.tex | |
E13/E13.tex | |
E14/E14.tex | |
E15/E15.tex | |
E16i/E16i.tex | |
E17/E17.tex | |
E18/E18.tex | |
- name: Move the PDF figures | |
run: | | |
topologies="E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 E11 E12 E13 E14 E15 E16i E17 E18" | |
for topology in $topologies; do | |
mv "${topology}.pdf" "${topology}/${topology}.pdf" | |
done | |
- name: Check for modified files | |
id: git-check | |
run: echo ::set-output name=modified::$(if [ -n "$(git status E*/E*.pdf --porcelain)" ]; then echo "true"; else echo "false"; fi) | |
- name: Update changes in GitHub repository | |
if: steps.git-check.outputs.modified == 'true' | |
run: | | |
git config --global user.name 'Deyan Mihaylov' | |
git config --global user.email '[email protected]' | |
git add E*/E*.pdf | |
git commit -m 'Update PDFs' | |
git push |