Skip to content

Commit

Permalink
Merge branch 'feature/large-file-check' into 'main'
Browse files Browse the repository at this point in the history
Large file check

See merge request syntron/support/csr/ifm3d/ifm3d!418
  • Loading branch information
BigBoot committed Oct 30, 2024
2 parents 0cd3def + e7cc806 commit c69f685
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitlab/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,18 @@ check:vale-linting:
- cd ${CI_PROJECT_DIR}/formatting-tools
- git reset --hard ${FORMATTING_TOOLS_REF}
- vale --minAlertLevel error ../doc/sphinx/* ../README.md ../ChangeLog.md

check:large-files:
stage: check
image: bitnami/git
variables:
GIT_DEPTH: 0
script:
- |
large_files=$(git rev-list --objects HEAD | git cat-file --batch-check='%(objectname) %(objectsize) %(rest)' | awk '$2 >= 100*1024*1024 {print $3 " [" $1 "]"}')
if [ -n "$large_files" ]; then
echo "Large files found:"
echo "$large_files"
exit 1
fi

0 comments on commit c69f685

Please sign in to comment.