diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index c45cef0..fae8e22 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -192,12 +192,22 @@ jobs: GIT_CREDENTIAL="${{ secrets.GIT_TOKEN || secrets.GIT_PASSWORD }}" for i in {1..5}; do echo "Attempt $i: Cloning upload-repo..." - if git clone --depth=10 "https://${{ env.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/debian-base.git" upload-repo; then + if git clone --depth=10 --filter=blob:none --no-checkout "https://${{ env.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/debian-base.git" upload-repo; then break fi sleep 10 done + if [ ! -d upload-repo ]; then + echo "[ERROR] Failed to clone upload repo." + exit 1 + fi + + cd upload-repo + git sparse-checkout init --cone + git sparse-checkout set */build-info.json */CHANGES.md + git checkout + - name: Generate per-version changelogs run: | cd upload-repo