cleanup using https://github.com/actions/checkout/issues/1830#issuecomment-2314758792 answer
This commit is contained in:
parent
912f16e0c3
commit
8cedeb531d
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue