From ab18192529378a34070b444f5b525bda84f90473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 1 Jul 2025 10:22:26 +0200 Subject: [PATCH] Enhance Git LFS handling in MKDocs Docker workflow --- .../workflows/build-and-push-mkdocs-docker-image.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-and-push-mkdocs-docker-image.yml b/.gitea/workflows/build-and-push-mkdocs-docker-image.yml index d4d15bf..e852a6c 100644 --- a/.gitea/workflows/build-and-push-mkdocs-docker-image.yml +++ b/.gitea/workflows/build-and-push-mkdocs-docker-image.yml @@ -31,7 +31,15 @@ jobs: - name: Checkout code uses: https://github.com/actions/checkout@v4 with: - lfs: true + persist-credentials: 'true' # Optional; should be the default + + - name: Checkout lfs + run: | + git lfs install --local + AUTH=$(git config --local http.${{ github.server_url }}/.extraheader) + git config --local --unset http.${{ github.server_url }}/.extraheader + git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + git lfs pull - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3