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: |
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: |

Check failure on line 24 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: 24, Col: 14): Unrecognized named-value: 'fileName'. Located at position 1 within expression: fileName
git add "./assets/pdf/$fileNamePDF"
git commit -m "pdf: ${{fileName}}"
git push origin main