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