actions/get_lfs/entrypoint.sh

15 lines
No EOL
401 B
Bash
Executable file

#!/bin/sh
export Repo=$1
export RepoRef=$2
export UrlBase=$3
export UrlLfsBase=${UrlBase}/${Repo}.git/info/lfs/objects
export Auth=$(git config --get --local http.${UrlBase}/.extraheader)
git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"
git config --local http.${UrlLfsBase}/.extraheader ''
git config --local lfs.transfer.maxretries 1
git lfs install
git lfs pull origin ${RepoRef}