actions/get_lfs/entrypoint.sh

15 lines
401 B
Bash
Raw Normal View History

2024-09-23 19:05:07 +00:00
#!/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
2024-09-23 19:27:33 +00:00
git lfs pull origin ${RepoRef}