From 8f46a017aca19f299df5ce4770d652c25ee28bc7 Mon Sep 17 00:00:00 2001 From: sayande717 Date: Thu, 11 Apr 2024 08:58:58 +0530 Subject: [PATCH] . --- .github/workflows/generate-pdf.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-pdf.yaml b/.github/workflows/generate-pdf.yaml index 29eb46d..a948b05 100644 --- a/.github/workflows/generate-pdf.yaml +++ b/.github/workflows/generate-pdf.yaml @@ -1,4 +1,3 @@ - name: Generate PDF from Markdown on: @@ -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: |