Fix LFS pull
This commit is contained in:
parent
9f87b08578
commit
37ef2d478e
1 changed files with 1 additions and 6 deletions
|
@ -19,15 +19,10 @@ runs:
|
|||
nix profile install nixpkgs#git-lfs nixpkgs#gnused
|
||||
mkdir -p ~/.config/nix && cp /etc/nix/nix.conf ~/.config/nix/
|
||||
|
||||
- name: Enable lfs
|
||||
if: inputs.lfs == true
|
||||
shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}"
|
||||
run: |
|
||||
git lfs install
|
||||
|
||||
- name: Checkout Repository
|
||||
shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}"
|
||||
run: |
|
||||
if [ "${{ inputs.lfs }}" == "true" ]; then git lfs install; fi
|
||||
GIT_SERVER=`echo -n "$GITHUB_SERVER_URL" | sed "s%https://%%"`
|
||||
echo -e "machine $GIT_SERVER\nlogin oauth2\npassword ${{ inputs.token }}" > ~/.netrc
|
||||
# Disable clone protection to pull LFS as well
|
||||
|
|
Loading…
Reference in a new issue