This commit is contained in:
2024-12-24 12:24:30 +03:00
parent 2f38f3e2e9
commit 8c0cdd40ef

View File

@@ -10,12 +10,19 @@ jobs:
IMAGE_TAG: ${{ github.sha }} IMAGE_TAG: ${{ github.sha }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@master
- name: Checkout LFS
run: | run: |
git init UrlBase=$GITHUB_SERVER_URL; \
git remote add origin ${{ github.server_url }}/${{ github.repository }}.git UrlLfsBase=$UrlBase/${{ github.repository }}.git/info/lfs/objects; \
git fetch --depth 1 origin ${{ github.ref }} Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
git checkout FETCH_HEAD /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
git lfs pull /usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ github.ref_name }}
/usr/bin/git lfs checkout
- name: Use ssh key - name: Use ssh key
uses: webfactory/ssh-agent@v0.9.0 uses: webfactory/ssh-agent@v0.9.0
with: with: