Skip to content

Fix PDF Action

Fix PDF Action #22

name: 📚 Docs to PDF
on:
push:
branches:
- main
jobs:
convert_to_pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: ZacJW/[email protected]
with:
input_files: ['guide.md']

Check failure on line 17 in .github/workflows/convert-to-pdf.yml

View workflow run for this annotation

GitHub Actions / 📚 Docs to PDF

Invalid workflow file

The workflow is not valid. .github/workflows/convert-to-pdf.yml (Line: 17, Col: 24): A sequence was not expected .github/workflows/convert-to-pdf.yml (Line: 18, Col: 25): A sequence was not expected
output_files: ['export/guide.html']
builtin_stylesheet: ['style.css']
packages: ['pymdown-extensions']
extensions: ['pymdownx.extra']
- name: html to pdf
uses: fifsky/html-to-pdf-action@master
with:
htmlFile: 'export/guide.html'
outputFile: 'export/guide.pdf'
pdfOptions: '{"format": "A4", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}}'