lfs in action/checkout doesnt work, see https://github.com/actions/checkout/issues/415
This commit is contained in:
parent
8d7de99a40
commit
409af1caa1
1 changed files with 10 additions and 2 deletions
|
@ -10,8 +10,16 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
function EscapeForwardSlash() { echo "$1" | sed 's/\//\\\//g'; }
|
||||
readonly ReplaceStr="EscapeForwardSlash ${{ gitea.repository }}.git/info/lfs/objects/batch"; sed -i "s/\(\[http\)\( \".*\)\"\]/\1\2`$ReplaceStr`\"]/" .git/config
|
||||
|
||||
git config --local lfs.transfer.maxretries 1
|
||||
|
||||
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||
/usr/bin/git lfs checkout
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
|
Loading…
Reference in a new issue