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: