From a728671b01918771aac0d32ca99fe3bad4fb25d2 Mon Sep 17 00:00:00 2001 From: arabian Date: Sun, 5 Jul 2026 18:31:38 +0300 Subject: [PATCH] fix(ci, flatter): fixed building nightly repo --- .github/workflows/flatter.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/flatter.yml b/.github/workflows/flatter.yml index 6d4439d..22fb164 100644 --- a/.github/workflows/flatter.yml +++ b/.github/workflows/flatter.yml @@ -121,13 +121,12 @@ jobs: mkdir -p release-bundles # Inherit existing OSTree repository to preserve previous branches (e.g. stable vs nightly) - if [ -f "gh-pages-branch/config" ]; then + # Only inherit if objects/ exists, otherwise it's a corrupted/empty repo due to Git ignoring empty folders + if [ -d "gh-pages-branch/objects" ]; then echo "Found existing OSTree repository. Copying..." cp -r gh-pages-branch pages-repo # Clean up the .git folder so it doesn't interfere rm -rf pages-repo/.git - # Recreate empty directories that git might have ignored - mkdir -p pages-repo/objects pages-repo/refs else echo "Initializing new OSTree repository..." mkdir -p pages-repo