Skip to content

Commit 72ca701

Browse files
committed
More debugging nonsense cause it KEEPS BREAKIN
Signed-off-by: FooterManDev <footerman.work@gmail.com>
1 parent 12f1dd9 commit 72ca701

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/build-docs.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,30 @@ jobs:
230230

231231
- name: Publish Algolia Indexes
232232
run: |
233+
set -euo pipefail
233234
cd algolia
235+
236+
echo "Listing files in $(pwd):"
237+
ls -la
238+
239+
echo ""
240+
echo "Showing contents of up to 5 JSON files:"
241+
count=0
242+
for jf in $(ls *.json 2>/dev/null | sort); do
243+
if [ $count -ge 5 ]; then
244+
break
245+
fi
246+
echo ""
247+
echo "----- File: $jf -----"
248+
cat "$jf"
249+
echo "----- End file: $jf -----"
250+
count=$((count + 1))
251+
done
252+
echo ""
253+
echo "Files displayed: $count"
254+
234255
for file in *.json; do
256+
[ -e "$file" ] || continue
235257
echo "Importing $file into $ALGOLIA_INDEX_NAME"
236258
algolia objects import "$ALGOLIA_INDEX_NAME" -F "$file"
237259
done

0 commit comments

Comments
 (0)