Skip to content

Commit

Permalink
Test Fixup: Assert Output Directory is non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jun 16, 2024
1 parent ed161a8 commit 9650cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-mkdocs-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ jobs:
- name: Test Custom Output Directory
uses: Reloaded-Project/devops-mkdocs@v1
with:
output-directory: docs/_site
output-directory: custom_site_dir
checkout-current-repo: false
publish-to-pages: false
- name: Assert Custom Output Directory
shell: bash
run: |
if [ ! -d docs/_site ]; then
echo "Custom output directory does not exist"
if [ ! -d custom_site_dir ] || [ -z "$(ls -A custom_site_dir)" ]; then
echo "Custom output directory does not exist or is empty"
exit 1
fi
Expand Down

0 comments on commit 9650cca

Please sign in to comment.