From 8cedeb531d6be0e4e2c38e706652c17a13e4225b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 28 Aug 2024 16:43:30 +0200 Subject: [PATCH] cleanup using https://github.com/actions/checkout/issues/1830#issuecomment-2314758792 answer --- .forgejo/workflows/publish.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index d5947bf..a39023a 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -14,10 +14,9 @@ jobs: - name: Checkout LFS run: | # Replace double auth header, see https://github.com/actions/checkout/issues/1830 - UrlLfsBase=${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects - Auth=`git config --get --local http.${{ github.server_url }}/.extraheader` - git config --local http.${UrlLfsBase}/batch.extraheader "$Auth" - git config --local http.${UrlLfsBase}/.extraheader "" + 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" # Get files git lfs fetch