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