From 008d00375bf5cfa56afce81ecce326af2e6e205a Mon Sep 17 00:00:00 2001 From: Xavier Moffett Date: Tue, 17 Dec 2024 01:31:30 -0500 Subject: [PATCH] Workaround for LFS double authentication header --- .forgejo/workflows/generate.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/generate.yml b/.forgejo/workflows/generate.yml index eb87f36..b4d0ac4 100644 --- a/.forgejo/workflows/generate.yml +++ b/.forgejo/workflows/generate.yml @@ -35,9 +35,18 @@ jobs: sparse-checkout: | templates/assets dist - lfs: true - show-progress: true 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 shell: bash run: |