diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 9afee19..71d0e51 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -8,9 +8,21 @@ jobs: container: image: ghcr.io/catthehacker/ubuntu:act-latest steps: - - name: Checkout + - name: Checkout Code uses: actions/checkout@v4 + - name: Checkout LFS + run: | + # Replace double auth header, see https://github.com/actions/checkout/issues/1830 + tmp=$(echo "${{ github.repository }}.git/info/lfs/objects/batch" | sed 's/\//\\\//g') + sed -i "s/\(\[http\)\( \".*\)\"\]/\1\2$tmp\"]/" .git/config + + git config --local lfs.transfer.maxretries 1 + + # LFS files + git lfs fetch origin refs/remotes/origin/${{ github.ref_name }} + git lfs checkout + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3