Enhance Git LFS handling in MKDocs Docker workflow
Some checks failed
continuous-integration/drone/push Build is failing
Build and Push MkDocs Docker Image / build-and-push (push) Successful in 2m27s

This commit is contained in:
Julien Fastré 2025-07-01 10:22:26 +02:00
parent 0eaddce399
commit ab18192529
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -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