Workaround for LFS double authentication header
All checks were successful
Generate Website / Generate Website (push) Successful in 17s

This commit is contained in:
Xavier Moffett 2024-12-17 01:31:30 -05:00
parent 24ffad8ed4
commit 008d00375b
Signed by: Sapphirus
GPG key ID: A6C061B2CEA1A7AC

View file

@ -35,9 +35,18 @@ jobs:
sparse-checkout: | sparse-checkout: |
templates/assets templates/assets
dist dist
lfs: true
show-progress: true
path: suo path: suo
- name: Pull from LFS
run: |
# Double authentication header workaround for actions/checkout@v4
# https://github.com/actions/checkout/issues/1830#issuecomment-2314758792
AUTH=$(git -C suo config --local http.$SERVER/.extraheader)
git -C suo config --local --unset http.$SERVER/.extraheader
git -C suo config --local http.$SERVER/$REPOSITORY/info/lfs/objects/batch.extraheader "$AUTH"
git -C suo lfs pull
env:
SERVER: ${{ github.server_url }}
REPOSITORY: sapphirus.org/Suo
- name: Fetch suo binary - name: Fetch suo binary
shell: bash shell: bash
run: | run: |