From 0c56cae906992710b5150fba5db57679e54385c7 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 22 Sep 2023 11:33:08 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publishable.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publishable.yml b/.github/workflows/publishable.yml index abfb87422..c54b093a3 100644 --- a/.github/workflows/publishable.yml +++ b/.github/workflows/publishable.yml @@ -31,10 +31,14 @@ jobs: working-directory: ${{ matrix.directory }} run: | limit_size=$(expr 128 \* 1024) - if [ $(stat -c%s README.md) -gt $limit_size ]; then + readme_size=$(stat -c%s README.md) + changelog_size=$(stat -c%s CHANGELOG.md) + if [ $readme_size -gt $limit_size ]; then + echo "README.md exceeded the maximum size: $readme_size > $limit_size." exit 1 fi - if [ $(stat -c%s CHANGELOG.md) -gt $limit_size ]; then + if [ $changelog_size -gt $limit_size ]; then + echo "CHANGELOG.md exceeded the maximum size: $changelog_size > $limit_size." exit 1 fi - uses: subosito/flutter-action@v2