From 9541fdc3ba6d9946ca426031d5d994312b0b2dbc Mon Sep 17 00:00:00 2001 From: zer0-911 Date: Sat, 6 Apr 2024 00:05:07 +0700 Subject: [PATCH] fix: ci 55 --- .github/workflows/ci.yml | 15 +++++++++++---- ...aC_ENG.tex => IntroductiontoCLanguage_ENG.tex} | 0 ...g_ENG.tex => StringArrayBranchingLoop_ENG.tex} | 0 ...ursi_ENG.tex => FunctionsandRecursion_ENG.tex} | 0 ...danStruct_ENG.tex => PointerandStruct_ENG.tex} | 0 5 files changed, 11 insertions(+), 4 deletions(-) rename P1/{PengenalanBahasaC_ENG.tex => IntroductiontoCLanguage_ENG.tex} (100%) rename P2/{PerulanganPercabanganArrayString_ENG.tex => StringArrayBranchingLoop_ENG.tex} (100%) rename P3/{FungsidanRekursi_ENG.tex => FunctionsandRecursion_ENG.tex} (100%) rename P4/{PointerdanStruct_ENG.tex => PointerandStruct_ENG.tex} (100%) 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