From e7bb18341c82c310fe27f4555e7a4b0ea50c204b Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Thu, 6 Feb 2025 21:02:53 +0300 Subject: [PATCH] update WF --- .github/workflows/build.yaml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0d2b6a9..2423643 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,21 +23,23 @@ jobs: steps: - name: Checkout uses: actions/checkout@master - - 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 }} + with: + lfs: ${{ inputs.lfs == 'true' }} +# - 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: Use ssh key uses: webfactory/ssh-agent@v0.9.0 with: