diff --git a/.gitea/workflows/build_and_test.yml b/.gitea/workflows/build_and_test.yml index ac19d87e..960b671c 100644 --- a/.gitea/workflows/build_and_test.yml +++ b/.gitea/workflows/build_and_test.yml @@ -31,6 +31,16 @@ jobs: CTEST_OUTPUT_ON_FAILURE: '1' steps: - uses: actions/checkout@v4 + - name: Configure auth and fetch LFS + shell: bash + env: + GITEA_TOKEN: ${{ secrets.PIP_REPOSITORY_API_TOKEN }} + run: | + git lfs install --local + AUTH=$(git config --local http.${{ github.server_url }}/.extraheader) + git config --local --unset http.${{ github.server_url }}/.extraheader + git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + git lfs pull - name: Build tests shell: bash run: |