From 07f55dd5f7e0664d3b940716a2d89a2078098c39 Mon Sep 17 00:00:00 2001 From: Paul Kilmurray Date: Wed, 24 Jan 2024 17:34:09 +0100 Subject: [PATCH] update i18n workflow --- .github/workflows/update-pot.yml | 11 ++++++++++- readme.txt | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-pot.yml b/.github/workflows/update-pot.yml index 1c6cc8f..149d16b 100644 --- a/.github/workflows/update-pot.yml +++ b/.github/workflows/update-pot.yml @@ -32,7 +32,16 @@ jobs: - name: Check for changes id: git-diff run: | - git diff --exit-code || echo "::set-output name=changes::true" + # Extract the current and previous versions of the .pot file + git show HEAD:languages/woocommerce-pos.pot > old.pot + tail -n +16 languages/woocommerce-pos.pot > new-trimmed.pot + tail -n +16 old.pot > old-trimmed.pot + + # Compare the trimmed files + diff --exit-code old-trimmed.pot new-trimmed.pot || echo "::set-output name=changes::true" + + # Clean up temporary files + rm old.pot new-trimmed.pot old-trimmed.pot - name: Commit updated POT file if: steps.git-diff.outputs.changes == 'true' diff --git a/readme.txt b/readme.txt index 95e04b8..845368c 100644 --- a/readme.txt +++ b/readme.txt @@ -63,7 +63,7 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co == Changelog == -= 1.4.10 = += 1.4.10 - 2024/01/23 = * Fix: compatibility issue with WooCommerce < 6.7.0 = 1.4.9 - 2024/01/21 = @@ -122,7 +122,7 @@ There is more information on our website at [https://wcpos.com](https://wcpos.co = 1.3.8 - 2023/08/08 = * Fix: login modal for desktop application -= 1.3.7 = 2023/07/31 = += 1.3.7 - 2023/07/31 = * Fix: rest_pre_serve_request critical error reported by some users * Fix: change 'woocommerce_available_payment_gateways' filter priority to 99 * Add: setting for servers that don't allow Authorization header