Skip to content

Commit

Permalink
fixup! own
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Jul 17, 2024
1 parent 997ae83 commit 9324f9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/repo_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
exit_code=0
while read -r id path; do
size="$(git cat-file -s "${id}")"
if [ ${size} > ${MAX_FILE_SIZE_BYTES} ]; then
if [ -z "${path}" ]; then
path="$(git cat-file -t "${id}") ${id}"
fi
if [ "${size}" > "${MAX_FILE_SIZE_BYTES}" ]; then
exit_code=1
echo "Object ${id} [${path}] has size ${size}, exceeding ${MAX_FILE_SIZE_BYTES} limit." >&2
echo "::error::File ${path} has size ${size}, exceeding ${MAX_FILE_SIZE_BYTES} limit."
Expand Down

0 comments on commit 9324f9f

Please sign in to comment.