Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sayande717 committed Apr 11, 2024
1 parent c86935e commit 8f46a01
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/generate-pdf.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Generate PDF from Markdown

on:
Expand All @@ -15,10 +14,9 @@ jobs:

- 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"
export fileName="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //; s/\.md$//')"
export fileNameMD="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //')"
export fileNamePDF="$(echo "${{ github.event.head_commit.message }}" | sed 's/update: //; s/\.md$//').pdf"
pandoc "./topics/${{fileNameMD}}" -o "./assets/pdf/$}}fileNamePDF}}"
- name: Commit PDF
run: |
Expand Down

0 comments on commit 8f46a01

Please sign in to comment.