diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index fae8e22..305f242 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -192,9 +192,11 @@ 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 --filter=blob:none --no-checkout "https://${{ env.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/debian-base.git" upload-repo; then + if git clone --depth=20 --filter=blob:none --no-checkout \ + "https://${{ env.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/debian-base.git" upload-repo; then break fi + echo "Retrying in 10s..." sleep 10 done @@ -205,9 +207,12 @@ jobs: cd upload-repo git sparse-checkout init --cone - git sparse-checkout set */build-info.json */CHANGES.md + for version in $VERSIONS; do + git sparse-checkout set "$version" + done git checkout + - name: Generate per-version changelogs run: | cd upload-repo