Skip to content

Commit

Permalink
🚀 Add README_ZH.md test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 22, 2023
1 parent cc5d4ed commit f62ae2e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publishable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,22 @@ jobs:
working-directory: ${{ matrix.directory }}
run: |
limit_size=$(expr 128 \* 1024) # Maximum 128kb.
readme_size=$(stat -c%s README.md)
changelog_size=$(stat -c%s CHANGELOG.md)
if [ $changelog_size -gt $limit_size ]; then
echo "CHANGELOG.md exceeded the maximum size: $changelog_size > $limit_size."
exit 1
fi
readme_size=$(stat -c%s README.md)
if [ $readme_size -gt $limit_size ]; then
echo "README.md exceeded the maximum size: $readme_size > $limit_size."
exit 1
fi
if [ $changelog_size -gt $limit_size ]; then
echo "CHANGELOG.md exceeded the maximum size: $changelog_size > $limit_size."
exit 1
if [ -f README_ZH.md ]; then
readme_zh_size=$(stat -c%s README_ZH.md)
if [ readme_zh_size -gt $limit_size ]; then
echo "README_ZH.md exceeded the maximum size: $readme_zh_size > $limit_size."
exit 1
fi
fi
- uses: subosito/flutter-action@v2
- run: |
Expand Down

0 comments on commit f62ae2e

Please sign in to comment.