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 b81e8ee commit ab5925e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/generate-pdf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ab5925e

Please sign in to comment.