From 7299ca4af157b442e4bf39c72b998a6fefae20b6 Mon Sep 17 00:00:00 2001 From: Oyasumi Gitea Date: Thu, 1 Jan 2026 14:50:10 +0800 Subject: [PATCH] git: lfs workaround for checkoutv6 --- .github/workflows/build.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 728c174..937efd4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,8 +14,18 @@ jobs: - name: Checkout code uses: actions/checkout@v6 with: - fetch-depth: 0 - lfs: true + fetch-depth: 1 + # lfs: true # THIS DOESN'T WORK!!!!!!!!! + + # https://github.com/actions/checkout/issues/1830 + - name: Set up Git LFS + run: | + git lfs install --local + AUTH=$(git config http.${{ github.server_url }}/.extraheader) + AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ github.repository }}/.git.path) + git config -f $AUTH_FILE --unset http.${{ github.server_url }}/.extraheader + git config -f $AUTH_FILE http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + git lfs pull - name: Set up Node.js uses: actions/setup-node@v4