Skip to content

Commit

Permalink
Update releasenotes_pdf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mprinkezs authored Sep 9, 2024
1 parent 33da23d commit f916d8e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/releasenotes_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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"
Expand Down

0 comments on commit f916d8e

Please sign in to comment.