From c949ed406fc147a695ecb44f73ff53134297a63a Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 22 Sep 2023 11:28:59 +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 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publishable.yml b/.github/workflows/publishable.yml index aa35ccbf8..abfb87422 100644 --- a/.github/workflows/publishable.yml +++ b/.github/workflows/publishable.yml @@ -31,9 +31,12 @@ jobs: working-directory: ${{ matrix.directory }} run: | limit_size=$(expr 128 \* 1024) - readme_size=$(stat -c%s README.md) - changelog_size=$(stat -c%s CHANGELOG.md) - [ [ "$readme_size" -gt "$limit_size" ] || [ "$changelog_size" -gt "$limit_size" ] ] && exit 1 || exit 0 + if [ $(stat -c%s README.md) -gt $limit_size ]; then + exit 1 + fi + if [ $(stat -c%s CHANGELOG.md) -gt $limit_size ]; then + exit 1 + fi - uses: subosito/flutter-action@v2 - run: | if grep -q "flutter:" "${{ matrix.directory }}/pubspec.yaml"; then