From f916d8ef6ed6f758348a9048f3356613eab1f735 Mon Sep 17 00:00:00 2001 From: mprinkezs <131883374+mprinkezs@users.noreply.github.com> Date: Mon, 9 Sep 2024 16:37:45 +0200 Subject: [PATCH] Update releasenotes_pdf.yml --- .github/workflows/releasenotes_pdf.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/releasenotes_pdf.yml b/.github/workflows/releasenotes_pdf.yml index 55632ea..7c3ccdd 100644 --- a/.github/workflows/releasenotes_pdf.yml +++ b/.github/workflows/releasenotes_pdf.yml @@ -14,13 +14,15 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install Pandoc + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + - name: Install markdown_pdf run: | - sudo apt-get update - # Install pdflatex as prerequisite for pandoc PDF output - sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra - sudo apt-get install -y pandoc - + pip install markdown_pdf + - name: Find and Convert Release Notes id: convert_notes run: | @@ -29,7 +31,7 @@ jobs: basepath=$(dirname "{}") # Get the folder path echo $basepath if [ ! -f "$basepath/Releasenotes.pdf" ]; then - pandoc --variable mainfont="Arial" "{}" -o "$basepath/Releasenotes.pdf" + python .github/scripts/md2pdf.py "{}" "$basepath/Releasenotes.pdf" git config --global user.name "GitHub Action" git config --global user.email "action@github.com" git add "$basepath/Releasenotes.pdf"