Skip to content

Commit

Permalink
✅ ++
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 22, 2023
1 parent c949ed4 commit 0c56cae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publishable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c56cae

Please sign in to comment.