Skip to content

Commit abab4d5

Browse files
committed
Add step to verify algolia-indexes directory in workflow
Ensure the 'algolia-indexes' directory exists and is not empty before publishing to Algolia. This helps catch potential issues early in the workflow process.
1 parent 59a27a1 commit abab4d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ jobs:
114114
run: |
115115
unzip -O UTF-8 -qq "${{ env.ALGOLIA_ARTIFACT }}" -d algolia-indexes
116116
117+
- name: Check algolia-indexes directory
118+
run: |
119+
echo "Checking contents of algolia-indexes:"
120+
ls -l algolia-indexes || (echo "Directory 'algolia-indexes' does not exist or is empty!" && exit 1)
121+
117122
- name: Publish to Algolia Index
118123
run: |
119124
env algolia-key='${{env.ALGOLIA_KEY}}' java -jar /opt/builder/help-publication-agent.jar \

0 commit comments

Comments
 (0)