Skip to content

Commit

Permalink
feat: Add check for PDF files in output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Feb 21, 2025
1 parent 3be271a commit 7bd6331
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ jobs:
eval $(opam env)
forester --version
bash ./build.sh
- name: Check for PDF files
run: |
pdf_count=$(find ./output -name "*.pdf" | wc -l)
if [ "$pdf_count" -eq 0 ]; then
echo "Error: No PDF files found in the output directory."
exit 1
fi
echo "Found $pdf_count PDF files."
- name: Fix permissions
run: |
chmod -c -R +rX "./output/" | while read line; do
Expand Down

0 comments on commit 7bd6331

Please sign in to comment.