Skip to content

Commit

Permalink
🔊 Log file sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Sep 22, 2023
1 parent f62ae2e commit 72eb791
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publishable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,20 @@ jobs:
run: |
limit_size=$(expr 128 \* 1024) # Maximum 128kb.
changelog_size=$(stat -c%s CHANGELOG.md)
echo "CHANGELOG.md file size: $changelog_size."
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)
echo "README.md file size: $readme_size."
if [ $readme_size -gt $limit_size ]; then
echo "README.md exceeded the maximum size: $readme_size > $limit_size."
exit 1
fi
if [ -f README_ZH.md ]; then
readme_zh_size=$(stat -c%s README_ZH.md)
echo "README_ZH.md file size: $readme_zh_size."
if [ readme_zh_size -gt $limit_size ]; then
echo "README_ZH.md exceeded the maximum size: $readme_zh_size > $limit_size."
exit 1
Expand Down

0 comments on commit 72eb791

Please sign in to comment.