From 9324f9f40d94fa147a64d3c46dda7a553fdc484d Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Wed, 17 Jul 2024 11:51:38 +0200 Subject: [PATCH] fixup! own --- .github/workflows/repo_check.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/repo_check.yml b/.github/workflows/repo_check.yml index 48719c6978756..eb1a92242aed3 100644 --- a/.github/workflows/repo_check.yml +++ b/.github/workflows/repo_check.yml @@ -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."