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 }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Checkout LFS
run: |
git init
git remote add origin ${{ github.server_url }}/${{ github.repository }}.git
git fetch --depth 1 origin ${{ github.ref }}
git checkout FETCH_HEAD
git lfs pull
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
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ github.ref_name }}
/usr/bin/git lfs checkout
- name: Use ssh key
uses: webfactory/ssh-agent@v0.9.0
with: