Fix Debian package file location for upload
Some checks failed
Build bootupd with systemd-boot / build (push) Failing after 1m22s

- 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
This commit is contained in:
robojerk 2025-09-05 10:43:56 -07:00
parent 7ad5a4c5cb
commit a414059af0

View file

@ -124,14 +124,20 @@ jobs:
run: | run: |
cd /tmp/bootupd-sdboot cd /tmp/bootupd-sdboot
echo "Uploading to Forgejo Debian Registry..." 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 # Set Forgejo configuration
FORGEJO_OWNER="particle-os" FORGEJO_OWNER="particle-os"
FORGEJO_DISTRIBUTION="trixie" FORGEJO_DISTRIBUTION="trixie"
FORGEJO_COMPONENT="main" FORGEJO_COMPONENT="main"
# Find the .deb file # Find the .deb file (it should be in the current directory from Docker mount)
DEB_FILE=$(ls bootupd_*.deb | head -1) DEB_FILE=$(ls bootupd_*.deb 2>/dev/null | head -1)
if [ -z "$DEB_FILE" ]; then if [ -z "$DEB_FILE" ]; then
echo "❌ No .deb file found for upload" echo "❌ No .deb file found for upload"