Skip to content

Commit

Permalink
fix: ci 50
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0-911 committed Apr 5, 2024
1 parent 690ecdf commit 7f62aa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ jobs:
with:
root_file: main.tex
pre_compile: |
MODULE_NAME="${{ matrix.module }}"
JUDUL_MODUL=$(echo "$MODULE_NAME" | sed -e 's|.*/||' -e 's|_IND||')
JUDUL_MODUL_WITH_SPACES=$(echo "$JUDUL_MODUL" | sed -r 's/([a-z])([A-Z])/\1 \2/g')
sed -i "s|\\\\def\\\\judul{.*}|\\\\def\\\\judul{$JUDUL_MODUL_WITH_SPACES}|" main.tex
sed -i 's|% \\input{'${{ matrix.module }}'.tex|\\input{'${{ matrix.module }}'.tex|' main.tex
working_directory: .
docker_image: ghcr.io/xu-cheng/texlive-full:20240315
Expand Down Expand Up @@ -67,9 +71,9 @@ jobs:
- name: Setup LaTeX
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
root_file: main[ENG].tex
pre_compile: |
sed -i 's|% \\input{'${{ matrix.module }}'.tex|\\input{'${{ matrix.module }}'.tex|' main.tex
sed -i 's|% \\input{'${{ matrix.module }}'.tex|\\input{'${{ matrix.module }}'.tex|' main[ENG].tex
working_directory: .
docker_image: ghcr.io/xu-cheng/texlive-full:20240315

Expand Down
2 changes: 1 addition & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
\def\institut{Institut Teknologi Sepuluh Nopember}
\def\praktikum{Praktikum \\ Dasar Pemrograman}
% Ubah Judul sesuai dengan modul
\def\judul{Fungsi dan Rekursi}
% \def\judul{Fungsi dan Rekursi}
\def\tahun{2023}
\begin{document}
% Ubah Bahasa sesuai dengan keinginan
Expand Down

0 comments on commit 7f62aa2

Please sign in to comment.