Quiet clone utility repos

pull/273/head
Frostebite 2021-07-02 23:51:56 +01:00
parent 57ef03a055
commit e41bbafc3c
3 changed files with 7 additions and 1 deletions

3
dist/index.js vendored
View File

@ -2104,16 +2104,19 @@ class RemoteBuilder {
# DISABLE LFS
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
git config --global filter.lfs.process "git-lfs filter-process --skip"
echo ''
echo "Cloning the repository being built:"
git init
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
git fetch origin
git reset --hard $GITHUB_SHA
echo ''
echo "Combining LFS hash files into one hash, this is used as the cache key:"
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.txt
ls -a
cat ${repoPathFull}/lfsSum.txt
echo '^ checksum'
echo ''
# time to handle library cache
if [ ! -d ${cacheFolderFull} ]; then
mkdir ${cacheFolderFull}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -113,16 +113,19 @@ class RemoteBuilder {
# DISABLE LFS
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
git config --global filter.lfs.process "git-lfs filter-process --skip"
echo ''
echo "Cloning the repository being built:"
git init
git remote add origin https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git
git fetch origin
git reset --hard $GITHUB_SHA
echo ''
echo "Combining LFS hash files into one hash, this is used as the cache key:"
git lfs ls-files -l | cut -d' ' -f1 | sort > ${repoPathFull}/lfsSum.txt
ls -a
cat ${repoPathFull}/lfsSum.txt
echo '^ checksum'
echo ''
# time to handle library cache
if [ ! -d ${cacheFolderFull} ]; then
mkdir ${cacheFolderFull}