Skip to content

Commit

Permalink
fix: ci 55
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0-911 committed Apr 5, 2024
1 parent f21977e commit 9541fdc
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: .
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9541fdc

Please sign in to comment.