Collect lfs file into .lfs-asset-id file and print

pull/273/head
Frostebite 2021-07-02 22:52:44 +01:00
parent dc3087fd64
commit 1ad3f2d3a7
3 changed files with 7 additions and 3 deletions

4
dist/index.js vendored
View File

@ -2098,10 +2098,12 @@ class RemoteBuilder {
echo "Get source repo for project to be built and game-ci repo for utilties" echo "Get source repo for project to be built and game-ci repo for utilties"
git clone https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git ${repoPathFull} git clone https://${buildParameters.githubToken}@github.com/${process.env.GITHUB_REPOSITORY}.git ${repoPathFull}
echo "Checkout" echo "Checkout"
git checkout $GITHUB_SHA --work-tree=${repoPathFull} cd ${repoPathFull}
git checkout $GITHUB_SHA
echo "Enable LFS" echo "Enable LFS"
git config --global filter.lfs.smudge "git-lfs smudge -- %f" git config --global filter.lfs.smudge "git-lfs smudge -- %f"
git config --global filter.lfs.process "git-lfs filter-process" git config --global filter.lfs.process "git-lfs filter-process"
cd
echo "combine lfs hashes to one file, hash that" echo "combine lfs hashes to one file, hash that"
find ${repoPathFull}/.git/lfs/ -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk find ${repoPathFull}/.git/lfs/ -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk
ls ${repoPathFull} ls ${repoPathFull}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -109,10 +109,12 @@ class RemoteBuilder {
process.env.GITHUB_REPOSITORY process.env.GITHUB_REPOSITORY
}.git ${repoPathFull} }.git ${repoPathFull}
echo "Checkout" echo "Checkout"
git checkout $GITHUB_SHA --work-tree=${repoPathFull} cd ${repoPathFull}
git checkout $GITHUB_SHA
echo "Enable LFS" echo "Enable LFS"
git config --global filter.lfs.smudge "git-lfs smudge -- %f" git config --global filter.lfs.smudge "git-lfs smudge -- %f"
git config --global filter.lfs.process "git-lfs filter-process" git config --global filter.lfs.process "git-lfs filter-process"
cd
echo "combine lfs hashes to one file, hash that" echo "combine lfs hashes to one file, hash that"
find ${repoPathFull}/.git/lfs/ -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk find ${repoPathFull}/.git/lfs/ -type f -exec md5sum "{}" + > ${repoPathFull}/lfsSum.chk
ls ${repoPathFull} ls ${repoPathFull}