diff --git a/.github/workflows/generate-pdf.yaml b/.github/workflows/generate-pdf.yaml index db38941..a7d566c 100644 --- a/.github/workflows/generate-pdf.yaml +++ b/.github/workflows/generate-pdf.yaml @@ -16,12 +16,12 @@ 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 - pandoc ./topics/$fileNameMD -o ./assets/pdf/$fileNamePDF + 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 add "./assets/pdf/$fileNamePDF" git commit -m "pdf: ${{fileName}}" git push origin main