diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bab1844..842f844 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,11 +25,11 @@ jobs: shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}" run: | git config --global credential.helper store + git config --global advice.detachedHead false git lfs install AUTH_URL=`echo -n "$GITHUB_SERVER_URL" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%"` - git clone --no-checkout $AUTH_URL/$GITHUB_REPOSITORY . - git checkout --recurse-submodules $GITHUB_REF - git lfs pull + # Disable clone protection to pull LFS as well + GIT_CLONE_PROTECTION_ACTIVE=false git clone --branch $GITHUB_REF_NAME --recurse-submodules $AUTH_URL/$GITHUB_REPOSITORY . - name: Run Nix Build shell: "nix shell nixpkgs#git-lfs --command {0}" run: nix build .