Skip to content

Commit 6789a99

Browse files
committed
fix action
1 parent e0c5a30 commit 6789a99

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build-pdf.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ jobs:
6767
ls -t gitbyexample-*-light.pdf 2>/dev/null | tail -n +11 | xargs -r rm -f
6868
ls -t gitbyexample-*-dark.pdf 2>/dev/null | tail -n +11 | xargs -r rm -f
6969
70-
cat > README.md << 'EOF'
71-
# Git By Example — PDF Builds
72-
73-
This branch contains auto-generated PDF builds of the book.
74-
75-
Each push to `main` produces two PDFs:
76-
- `gitbyexample-<commit>-light.pdf` — Light edition
77-
- `gitbyexample-<commit>-dark.pdf` — Dark edition
78-
79-
📥 **Download the latest**: check the most recent files below.
80-
EOF
70+
printf '%s\n' \
71+
"# Git By Example — PDF Builds" \
72+
"" \
73+
"This branch contains auto-generated PDF builds of the book." \
74+
"" \
75+
"Each push to main produces two PDFs:" \
76+
"- gitbyexample-COMMIT-light.pdf — Light edition" \
77+
"- gitbyexample-COMMIT-dark.pdf — Dark edition" \
78+
"" \
79+
"Download the latest: check the most recent file below." \
80+
> README.md
8181
8282
git add README.md gitbyexample-*.pdf
8383
git commit -m "pdf: build from ${GITHUB_SHA::6}" || echo "No changes to commit"

0 commit comments

Comments
 (0)