From 201a835ee18ace98d32326b7d1c6dc3565fa74d4 Mon Sep 17 00:00:00 2001 From: Kevin Meinhardt Date: Fri, 19 Jan 2024 14:59:01 +0100 Subject: [PATCH] tmp: reuse existing --- .github/workflows/localization.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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