From 9ed6ee4e5915a9887b1bbd255c9043a1f07d3830 Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Fri, 7 Feb 2025 12:00:00 +0300 Subject: [PATCH] retry lfs --- .github/workflows/build.yaml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d776a13..a245a4c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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: