From 5a702922321d0766c912aeac66f5235d27a812ca Mon Sep 17 00:00:00 2001
From: Elias Bonauer <elektro@mabi.ch>
Date: Fri, 26 Jul 2024 18:19:12 +0200
Subject: [PATCH] Add df -h for debugging purposes

---
 .github/workflows/update_parts_database.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/.github/workflows/update_parts_database.yml b/.github/workflows/update_parts_database.yml
index 647413e..65be10f 100644
--- a/.github/workflows/update_parts_database.yml
+++ b/.github/workflows/update_parts_database.yml
@@ -41,6 +41,11 @@ jobs:
         run: |
           set -x
 
+          # Print the current disk usage, might help with future "no disk space left" issues
+          echo "============================================================================================================================="
+          df -h
+          echo "============================================================================================================================="
+
           mkdir -p db_build
           cd db_build
 
@@ -58,6 +63,12 @@ jobs:
 
           ls -lah
           cd ..
+
+          # Print the current disk usage, might help with future "no disk space left" issues
+          echo "============================================================================================================================="
+          df -h
+          echo "============================================================================================================================="
+
           # creates the converted database in 80M split-zip files in folder db_build
           python3 jlcparts_db_convert.py
           # remove the source db, as we don't want to package that one
@@ -66,6 +77,11 @@ jobs:
           ls -lah db_build
           du -cslh db_build
 
+          # Print the current disk usage, might help with future "no disk space left" issues
+          echo "============================================================================================================================="
+          df -h
+          echo "============================================================================================================================="
+
       - name: Upload pages artifact
         uses: actions/upload-pages-artifact@v3
         with: