retry lfs
This commit is contained in:
32
.github/workflows/build.yaml
vendored
32
.github/workflows/build.yaml
vendored
@@ -23,23 +23,21 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
lfs: ${{ inputs.lfs }}
|
||||
# - name: Checkout LFS
|
||||
# if: ${{ inputs.lfs == 'true' }}
|
||||
# run: |
|
||||
# UrlBase=$GITHUB_SERVER_URL; \
|
||||
# UrlLfsBase=$UrlBase/${{ github.repository }}.git/info/lfs/objects; \
|
||||
# Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||
# /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||
# /usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||
#
|
||||
# git config --local lfs.transfer.maxretries 1
|
||||
# git ls-remote
|
||||
# git lfs checkout
|
||||
# git lfs fetch
|
||||
# git lfs pull
|
||||
# #git lfs fetch origin refs/heads/${{ github.head_ref || github.ref_name }}
|
||||
- name: Checkout LFS
|
||||
if: ${{ inputs.lfs }}
|
||||
run: |
|
||||
UrlBase=$GITHUB_SERVER_URL; \
|
||||
UrlLfsBase=$UrlBase/${{ github.repository }}.git/info/lfs/objects; \
|
||||
Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||
|
||||
git config --local lfs.transfer.maxretries 1
|
||||
git ls-remote
|
||||
git lfs checkout
|
||||
git lfs fetch
|
||||
git lfs pull
|
||||
#git lfs fetch origin refs/heads/${{ github.head_ref || github.ref_name }}
|
||||
- name: Use ssh key
|
||||
uses: webfactory/ssh-agent@v0.9.0
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user