From 72eb7915d2c30ea2a5269b6079b9f43deb15a194 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 22 Sep 2023 13:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Log=20file=20sizes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publishable.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publishable.yml b/.github/workflows/publishable.yml index 2a78109b4..1de8313a8 100644 --- a/.github/workflows/publishable.yml +++ b/.github/workflows/publishable.yml @@ -32,17 +32,20 @@ jobs: run: | limit_size=$(expr 128 \* 1024) # Maximum 128kb. changelog_size=$(stat -c%s CHANGELOG.md) + echo "CHANGELOG.md file size: $changelog_size." if [ $changelog_size -gt $limit_size ]; then echo "CHANGELOG.md exceeded the maximum size: $changelog_size > $limit_size." exit 1 fi readme_size=$(stat -c%s README.md) + echo "README.md file size: $readme_size." if [ $readme_size -gt $limit_size ]; then echo "README.md exceeded the maximum size: $readme_size > $limit_size." exit 1 fi if [ -f README_ZH.md ]; then readme_zh_size=$(stat -c%s README_ZH.md) + echo "README_ZH.md file size: $readme_zh_size." if [ readme_zh_size -gt $limit_size ]; then echo "README_ZH.md exceeded the maximum size: $readme_zh_size > $limit_size." exit 1