Skip to content

Commit

Permalink
tmp: reuse existing
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Jan 19, 2024
1 parent 3871dd9 commit 201a835
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/localization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
run: yarn extract-locales
- name: Diff changes
run: |
diff_result=$(git diff --numstat HEAD -- ./locale/templates/LC_MESSAGES/amo.pot)
if [[ $diff_result -le 2 ]]; then
echo "nothing to do"
git_diff_stat=$(git diff --shortstat)
if [[ -z "$git_diff_stat" ]] || [[ "$git_diff_stat" == *"$DIFF_WITH_ONE_LINE_CHANGE"* ]]; then
echo "No changes to locales"
exit 0
fi

0 comments on commit 201a835

Please sign in to comment.