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