Skip to content

Commit

Permalink
Update pdf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimin-z authored Jul 15, 2024
1 parent 01d8406 commit 71dd100
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ jobs:
- name: Create PDF directory
run: mkdir -p pdfs

# Fix YAML metadata issues
- name: Fix YAML metadata
run: |
find . -name "*.md" -exec sed -i '/^---$/!b;n;/^$/!b;n;/^---$/d;' {} \;
# Ensure images are present
- name: Ensure images are present
run: mkdir -p imgs && touch imgs/dummy.jpg
- name: Replace missing images
run: |
find . -name "*.md" -exec sed -i 's|imgs/|imgs/dummy.jpg|g' {} \;
# Concatenate all markdown files into a single file
- name: Concatenate markdown files
run: find . -name "*.md" -exec cat {} + > combined.md
Expand Down

0 comments on commit 71dd100

Please sign in to comment.