Skip to content

Commit

Permalink
FIX: only commit i18n changes if there are changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Feb 1, 2025
1 parent 6b09ed0 commit d525bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/i18n-extract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
git add $PYGETTEXT_LOCALEDIR/$PYGETTEXT_DOMAIN.pot
if [ -n "$(git status --porcelain)" ]; then
CHANGED_LINES=$(git diff --staged | grep -E "^[\+\-]" | wc -l)
if [ $CHANGED_LINES -gt 2 ]; then
if [ $CHANGED_LINES -gt 4 ]; then
git commit -m "CHORE: Extracted i18n strings to $PYGETTEXT_LOCALEDIR/$PYGETTEXT_DOMAIN.pot"
git push
else
Expand Down

0 comments on commit d525bca

Please sign in to comment.