From a414059af0cbb6b65b83705286e53e9596b9aa95 Mon Sep 17 00:00:00 2001 From: robojerk Date: Fri, 5 Sep 2025 10:43:56 -0700 Subject: [PATCH] Fix Debian package file location for upload - Add debugging to show files in upload directory - Fix .deb file search with proper error handling - The .deb file should be in current directory from Docker mount - Add 2>/dev/null to prevent ls errors from breaking the workflow --- .forgejo/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 38cb95a..3308a49 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -124,14 +124,20 @@ jobs: run: | cd /tmp/bootupd-sdboot echo "Uploading to Forgejo Debian Registry..." + + # Debug: List files in current directory + echo "Files in current directory:" + ls -la + echo "Looking for .deb files:" + ls -la *.deb 2>/dev/null || echo "No .deb files found" # Set Forgejo configuration FORGEJO_OWNER="particle-os" FORGEJO_DISTRIBUTION="trixie" FORGEJO_COMPONENT="main" - # Find the .deb file - DEB_FILE=$(ls bootupd_*.deb | head -1) + # Find the .deb file (it should be in the current directory from Docker mount) + DEB_FILE=$(ls bootupd_*.deb 2>/dev/null | head -1) if [ -z "$DEB_FILE" ]; then echo "❌ No .deb file found for upload"