build_devel: check file sizes against GH limit (#25391)

* build_devel: check file sizes against GH limit

* pull lfs
This commit is contained in:
Adeeb Shihadeh
2022-08-08 14:16:47 -07:00
committed by GitHub
parent 2a4020da60
commit ce1e40285b
2 changed files with 11 additions and 0 deletions
+2
View File
@@ -39,6 +39,8 @@ jobs:
with:
fetch-depth: 0
submodules: true
- name: Pull LFS
run: git lfs pull
- name: Check submodules
if: github.ref == 'refs/heads/master' && github.repository == 'commaai/openpilot'
run: release/check-submodules.sh
+9
View File
@@ -69,6 +69,15 @@ date: $DATETIME
master commit: $GIT_HASH
"
# ensure files are within GitHub's limit
BIG_FILES="$(find . -type f -not -path './.git/*' -size +95M)"
if [ ! -z "$BIG_FILES" ]; then
printf '\n\n\n'
echo "Found files exceeding GitHub's 100MB limit:"
echo "$BIG_FILES"
exit 1
fi
if [ ! -z "$BRANCH" ]; then
echo "[-] Pushing to $BRANCH T=$SECONDS"
git push -f origin master-ci:$BRANCH