diff --git a/.gitea/workflows/mirror-to-github.yml b/.gitea/workflows/mirror-to-github.yml index f679e5b..81efb63 100644 --- a/.gitea/workflows/mirror-to-github.yml +++ b/.gitea/workflows/mirror-to-github.yml @@ -113,9 +113,11 @@ jobs: git checkout github-mirror echo "Current files before cleanup:" - find . -name ".*" -o -name "*" | head -20 + ls -la | head -10 || true + echo "..." # Remove sensitive files/directories if they exist + echo "Removing sensitive files..." rm -rf .env* || true rm -rf backend/.env* || true rm -rf frontend/.env* || true @@ -136,6 +138,8 @@ jobs: rm -rf test-maintenance.sh || true rm -rf storage/ || true + echo "Sensitive files removal completed" + # Add and commit the cleanup if there are changes git add -A if ! git diff --cached --quiet; then @@ -145,8 +149,8 @@ jobs: echo "✅ No sensitive files to remove" fi - echo "Final file structure:" - find . -name ".*" -o -name "*" | head -20 + echo "Final file structure (top level):" + ls -la | head -10 || true - name: Verify clean history run: |