diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cb325c..5210c11 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,7 @@ jobs: 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') + JUDUL_MODUL_WITH_SPACES=$(echo "$JUDUL_MODUL_WITH_SPACES" | sed -r 's/dan/ dan/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: . @@ -58,10 +59,10 @@ jobs: matrix: module: [ - P1/PengenalanBahasaC_ENG, - P2/PerulanganPercabanganArrayString_ENG, - P3/FungsidanRekursi_ENG, - P4/PointerdanStruct_ENG, + P1/IntroductiontoCLanguage_ENG, + P2/StringArrayBranchingLoop_ENG, + P3/FunctionsandRecursion_ENG, + P4/PointerandStruct_ENG, ] steps: @@ -73,6 +74,12 @@ jobs: with: root_file: main_ENG.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') + JUDUL_MODUL_WITH_SPACES=$(echo "$JUDUL_MODUL_WITH_SPACES" | sed -r 's/and/ and/g') + JUDUL_MODUL_WITH_SPACES=$(echo "$JUDUL_MODUL_WITH_SPACES" | sed -r 's/to/ to/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_ENG.tex working_directory: . docker_image: ghcr.io/xu-cheng/texlive-full:20240315 diff --git a/P1/PengenalanBahasaC_ENG.tex b/P1/IntroductiontoCLanguage_ENG.tex similarity index 100% rename from P1/PengenalanBahasaC_ENG.tex rename to P1/IntroductiontoCLanguage_ENG.tex diff --git a/P2/PerulanganPercabanganArrayString_ENG.tex b/P2/StringArrayBranchingLoop_ENG.tex similarity index 100% rename from P2/PerulanganPercabanganArrayString_ENG.tex rename to P2/StringArrayBranchingLoop_ENG.tex diff --git a/P3/FungsidanRekursi_ENG.tex b/P3/FunctionsandRecursion_ENG.tex similarity index 100% rename from P3/FungsidanRekursi_ENG.tex rename to P3/FunctionsandRecursion_ENG.tex diff --git a/P4/PointerdanStruct_ENG.tex b/P4/PointerandStruct_ENG.tex similarity index 100% rename from P4/PointerdanStruct_ENG.tex rename to P4/PointerandStruct_ENG.tex