Skip to content

Commit 9650cca

Browse files
committed
Test Fixup: Assert Output Directory is non-empty
1 parent ed161a8 commit 9650cca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test-mkdocs-workflow.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ jobs:
102102
- name: Test Custom Output Directory
103103
uses: Reloaded-Project/devops-mkdocs@v1
104104
with:
105-
output-directory: docs/_site
105+
output-directory: custom_site_dir
106106
checkout-current-repo: false
107107
publish-to-pages: false
108108
- name: Assert Custom Output Directory
109109
shell: bash
110110
run: |
111-
if [ ! -d docs/_site ]; then
112-
echo "Custom output directory does not exist"
111+
if [ ! -d custom_site_dir ] || [ -z "$(ls -A custom_site_dir)" ]; then
112+
echo "Custom output directory does not exist or is empty"
113113
exit 1
114114
fi
115115

0 commit comments

Comments
 (0)