Skip to content

Update releasenotes_pdf.yml #4

Update releasenotes_pdf.yml

Update releasenotes_pdf.yml #4

name: Create Release Notes PDF
on:
push:
branches:
- main
workflow_dispatch:
jobs:
create_pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pdflatex
sudo apt-get install -y pandoc
- name: Find and Convert Release Notes
id: convert_notes
run: |
find . -type f -name 'Releasenotes.md' -exec sh -c '
basepath=$(dirname "{}") # Get the folder path
if [ ! -f "$basepath/Releasenotes.pdf" ]; then
pandoc "{}" -o "$basepath/Releasenotes.pdf"
fi
' \;