ci: trying to fetch LFS by themselves

This commit is contained in:
2025-06-16 08:25:28 +02:00
parent 20fd0f48a3
commit 706a495e2b

View File

@ -49,8 +49,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
token: ${{ secrets.token }}
lfs: false
- name: Checkout LFS
run: |
UrlBase=$GITHUB_SERVER_URL; \
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
/usr/bin/git lfs checkout
- name: Import resources and build solution
run: |
godot --headless --editor --build-solutions --quit --import --path $PWD