ci: attempt to fix lfs fetch
Some checks failed
create archive with lfs / tag (push) Failing after 3s

This commit is contained in:
dusk 2024-09-26 20:55:37 +03:00
parent 2bc70bcf07
commit f08a6df7b4
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -12,7 +12,14 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 1 fetch-depth: 1
lfs: true lfs: false
- 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
git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
git lfs checkout
- uses: https://gitea.com/actions/gitea-release-action@v1 - uses: https://gitea.com/actions/gitea-release-action@v1
with: with:
files: |- files: |-