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
|
- name: Checkout LFS
|
||||||
run: |
|
run: |
|
||||||
# Replace double auth header, see https://github.com/actions/checkout/issues/1830
|
# 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 --local http.${{ github.server_url }}/.extraheader)
|
||||||
Auth=`git config --get --local http.${{ github.server_url }}/.extraheader`
|
git config --local --unset http.${{ github.server_url }}/.extraheader
|
||||||
git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"
|
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||||
git config --local http.${UrlLfsBase}/.extraheader ""
|
|
||||||
|
|
||||||
# Get files
|
# Get files
|
||||||
git lfs fetch
|
git lfs fetch
|
||||||
|
|
Loading…
Reference in a new issue