Skip to content

update: Artificial-Intelligence #7

update: Artificial-Intelligence

update: Artificial-Intelligence #7

Workflow file for this run

name: Generate PDF from Markdown
on:
push:
branches:
- main
jobs:
run_commands:
runs-on: server0-notes
steps:
- name: Checkout repository
uses: actions/checkout@v2 # This step checks out your repository code
- name: Convert & Store
run: |
export fileName="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //')"
export fileNameMD=$fileName.md
export fileNamePDF=$fileName.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