diff --git a/.github/workflows/localization.yml b/.github/workflows/localization.yml index 9c09255b966..e5b8670ba06 100644 --- a/.github/workflows/localization.yml +++ b/.github/workflows/localization.yml @@ -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