Skip to content

Workflow file for this run

name: Generate PDF from Markdown
on:
push:
branches:
- main
jobs:
run_commands:
runs-on: s0-notes
steps:
- name: Checkout repository
uses: actions/checkout@v2 # This step checks out your repository code
- name: Convert & Store
run: |

Check failure on line 17 in .github/workflows/generate-pdf.yaml

View workflow run for this annotation

GitHub Actions / Generate PDF from Markdown

Invalid workflow file

The workflow is not valid. .github/workflows/generate-pdf.yaml (Line: 17, Col: 14): Unrecognized named-value: 'fileNameMD'. Located at position 1 within expression: fileNameMD .github/workflows/generate-pdf.yaml (Line: 24, Col: 14): Unrecognized named-value: 'fileNamePDF'. Located at position 1 within expression: fileNamePDF
ls -la
fileName="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //; s/\.md$//')"
fileNameMD="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //')"
fileNamePDF="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //; s/\.md$//').pdf"
pandoc "./topics/${{fileNameMD}}" -o "./assets/pdf/$}}fileNamePDF}}"
- name: Commit PDF
run: |
git add "./assets/pdf/${{fileNamePDF}}"
git commit -m "pdf: ${{fileName}}"
git push origin main